# HG changeset patch # User Christian Hammond # Date 1040794208 0 # Node ID ccec4fde84f4314f9a3e6621744d21383afa3727 # Parent 990eb517e38a55e52bb16ec96161a73e8b55e085 [gaim-migrate @ 4359] The last in Ari's never-ending memory leak fixes. committer: Tailor Script diff -r 990eb517e38a -r ccec4fde84f4 src/gtkimhtml.c --- 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