changeset 4141:ccec4fde84f4

[gaim-migrate @ 4359] The last in Ari's never-ending memory leak fixes. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 25 Dec 2002 05:30:08 +0000
parents 990eb517e38a
children b45a29ad4e14
files src/gtkimhtml.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Wed Dec 25 05:20:42 2002 +0000
+++ b/src/gtkimhtml.c	Wed Dec 25 05:30:08 2002 +0000
@@ -221,7 +221,7 @@
 	if (event->type == GDK_BUTTON_RELEASE) {
 		/* A link was clicked--we emit the "url_clicked" signal with the URL as the argument */
 		//	if ((GdkEventButton)(event)->button == 1) 
-			gtk_signal_emit (G_OBJECT(arg1), signals[URL_CLICKED], url);
+			gtk_signal_emit (GTK_OBJECT(arg1), signals[URL_CLICKED], url);
 	} else if (event->type == GDK_ENTER_NOTIFY) {
 		/* make a hand cursor and a tooltip timeout -- if GTK worked as it should */
 	} else if (event->type == GDK_LEAVE_NOTIFY) {
@@ -252,8 +252,10 @@
 		x++; len++;
 	}
 
-	if (t->image)
+	if (t->image) {
+		g_free(t->image);
 		t->image = NULL;
+	}
 }
 
 static gint