Mercurial > pidgin.yaz
changeset 5019:eb1d45bffe66
[gaim-migrate @ 5355]
this at least compiles. lets see how badly i messed things up
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 05 Apr 2003 03:02:12 +0000 |
parents | f82e6763e039 |
children | 29c87c6e75d9 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sat Apr 05 02:55:12 2003 +0000 +++ b/src/gtkimhtml.c Sat Apr 05 03:02:12 2003 +0000 @@ -1533,9 +1533,9 @@ const gchar *filename = gtk_file_selection_get_filename(sel); gaim_im_image *image = g_object_get_data(G_OBJECT(sel), "gaim_im_image"); gchar *type = NULL; + GError *error = NULL; #if GTK_CHECK_VERSION(2,2,0) GSList *formats = gdk_pixbuf_get_formats(); - GError *error = NULL; while(formats){ GdkPixbufFormat *format = formats->data; @@ -1569,6 +1569,7 @@ _("Gaim was unable to guess the image type base on the file extension supplied. Defaulting to PNG.")); type = g_strdup("png"); } + g_slist_free(formats); #else type = g_strdup("png"); #endif @@ -1581,7 +1582,6 @@ g_error_free(error); } - g_slist_free(formats); g_free(type); }