Description: fix segfault caused by timeout handler running during shutdown
 .
 gnome-pilot (2.0.17-2) unstable; urgency=low
 .
   * debian/patches/fix-timeout-segfault.dpatch: fix segfault caused by
     timeout handler running during shutdown. (LP: #189389)
 .
Author: Marc Deslauriers <marc.deslauriers@ubuntu.com>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=611531
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnome-pilot/+bug/189389
Forwarded: https://bugzilla.gnome.org/show_bug.cgi?id=611531
---

--- gnome-pilot-2.0.17.orig/applet/pilot.c
+++ gnome-pilot-2.0.17/applet/pilot.c
@@ -1319,6 +1319,8 @@ applet_destroy (GtkWidget *applet, Pilot
 {
 	g_message (_("destroy gpilot-applet"));
 
+	gtk_timeout_remove(self->timeout_handler_id);
+
 	/* XXX free other stuff */
 	g_free (self);
 }
