[gnome-pilot] 10-06-16 Matt Davey <mcdavey mrao cam ac uk> * #611531. Fix segfault when shutting down applet. T



commit 2564c595cb9967739957ce40188523e8abc1ab5c
Author: Matt Davey <mcdavey mrao cam ac uk>
Date:   Wed Jun 16 20:24:29 2010 +0100

    10-06-16 Matt Davey <mcdavey mrao cam ac uk>
    	* #611531.  Fix segfault when shutting down applet.  Thanks to
    	Marc Delauriers.
    	*  applet/pilot.c

 ChangeLog      |    6 ++++++
 applet/pilot.c |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ffebf4c..e5adf99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-16 Matt Davey <mcdavey mrao cam ac uk>
+	* #611531.  Fix segfault when shutting down applet.  Thanks to
+	Marc Delauriers.
+	*  applet/pilot.c
+
+
 2010-02-01 Matt Davey <mcdavey mrao cam ac uk>
 	* removed a few more deprecated Glib symbols.
 		#594214, with thanks to Javier Jardon.
diff --git a/applet/pilot.c b/applet/pilot.c
index 6df18e7..31585f2 100644
--- a/applet/pilot.c
+++ b/applet/pilot.c
@@ -1353,6 +1353,8 @@ applet_destroy (GtkWidget *applet, PilotApplet *self)
 {
 	g_message (_("destroy gpilot-applet"));
 
+	gtk_timeout_remove(self->timeout_handler_id);
+
 	/* XXX free other stuff */
 	g_free (self);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]