pidgin: 777e7e6c: Small leak fix.
sadrul at pidgin.im
sadrul at pidgin.im
Sat Jun 21 03:05:45 EDT 2008
-----------------------------------------------------------------
Revision: 777e7e6c4fb02c0b0f0dc557554cfc83b92544ae
Ancestor: 4037e908f8c3536d50d9439ec2eec0f4d6ee3b60
Author: sadrul at pidgin.im
Date: 2008-06-21T04:50:36
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/777e7e6c4fb02c0b0f0dc557554cfc83b92544ae
Modified files:
pidgin/gtkmenutray.c
ChangeLog:
Small leak fix.
-------------- next part --------------
============================================================
--- pidgin/gtkmenutray.c 13a805a9aa98d3e59a7bdf688af0223df2e414c1
+++ pidgin/gtkmenutray.c 379e9d48d2bb7d9a67fe6927cccdab5263f55971
@@ -84,19 +84,23 @@ static void
}
static void
-pidgin_menu_tray_finalize(GObject *obj) {
+pidgin_menu_tray_finalize(GObject *obj)
+{
+ PidginMenuTray *tray = PIDGIN_MENU_TRAY(obj);
#if 0
/* This _might_ be leaking, but I have a sneaking suspicion that the widget is
* getting destroyed in GtkContainer's finalize function. But if were are
* leaking here, be sure to figure out why this causes a crash.
* -- Gary
*/
- PidginMenuTray *tray = PIDGIN_MENU_TRAY(obj);
if(GTK_IS_WIDGET(tray->tray))
gtk_widget_destroy(GTK_WIDGET(tray->tray));
#endif
+ if (tray->tooltips)
+ g_object_ref_sink(G_OBJECT(tray->tooltips));
+
G_OBJECT_CLASS(parent_class)->finalize(obj);
}
More information about the Commits
mailing list