Mercurial > pidgin.yaz
changeset 23048:13a9b56f83b0
*** Plucked rev 1dc65a60 (sadrul@pidgin.im):
Plug the memory leak in the tooltip for menutrays properly. Thanks to
Andrea Visinoni for pointing at the bug.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 21 Jun 2008 16:34:02 +0000 |
parents | 76ae43c5e745 |
children | 6b5b40a31c02 9a5d140400f1 |
files | pidgin/gtkmenutray.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkmenutray.c Sat Jun 21 14:41:18 2008 +0000 +++ b/pidgin/gtkmenutray.c Sat Jun 21 16:34:02 2008 +0000 @@ -98,8 +98,9 @@ gtk_widget_destroy(GTK_WIDGET(tray->tray)); #endif - if (tray->tooltips) - g_object_ref_sink(G_OBJECT(tray->tooltips)); + if (tray->tooltips) { + gtk_object_sink(GTK_OBJECT(tray->tooltips)); + } G_OBJECT_CLASS(parent_class)->finalize(obj); }