changeset 23237:37866b3e549c

Unleak some tooltip related pango stuff.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 29 May 2008 02:00:57 +0000
parents 4561cb0c6e94
children eab5bbc5031c
files pidgin/gtkimhtml.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Thu May 29 01:59:52 2008 +0000
+++ b/pidgin/gtkimhtml.c	Thu May 29 02:00:57 2008 +0000
@@ -514,6 +514,7 @@
 			tmp);
 		g_free(tmp);
 
+		g_object_unref(layout);
 		return FALSE;
 	}
 
@@ -551,6 +552,7 @@
 	gtk_widget_show (imhtml->tip_window);
 
 	pango_font_metrics_unref(font_metrics);
+	g_object_unref(font);
 	g_object_unref(layout);
 
 	return FALSE;