pidgin: 677a3855: Unleak some tooltip related pango stuff.

datallah at pidgin.im datallah at pidgin.im
Wed May 28 22:10:43 EDT 2008


-----------------------------------------------------------------
Revision: 677a3855450efcb2a3b51c843ced2d166c018159
Ancestor: a341780d901f6351a5cf768a08d30c8882d6cf2f
Author: datallah at pidgin.im
Date: 2008-05-29T02:00:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/677a3855450efcb2a3b51c843ced2d166c018159

Modified files:
        pidgin/gtkimhtml.c

ChangeLog: 

Unleak some tooltip related pango stuff.

-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c	79c9632e490fba58847c2899ed8d232c9a9a6aa8
+++ pidgin/gtkimhtml.c	4b05a7ac81f4713fd1a248c25c09e26e4e6abf90
@@ -514,6 +514,7 @@ gtk_imhtml_tip (gpointer data)
 			tmp);
 		g_free(tmp);
 
+		g_object_unref(layout);
 		return FALSE;
 	}
 
@@ -551,6 +552,7 @@ gtk_imhtml_tip (gpointer data)
 	gtk_widget_show (imhtml->tip_window);
 
 	pango_font_metrics_unref(font_metrics);
+	g_object_unref(font);
 	g_object_unref(layout);
 
 	return FALSE;


More information about the Commits mailing list