diff src/gtkimhtml.c @ 11299:421007f39e53

[gaim-migrate @ 13499] Fix a C99ism. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 18 Aug 2005 06:33:33 +0000
parents 17ebda61c6ce
children a74244102c0a
line wrap: on
line diff
--- a/src/gtkimhtml.c	Thu Aug 18 05:07:33 2005 +0000
+++ b/src/gtkimhtml.c	Thu Aug 18 06:33:33 2005 +0000
@@ -4378,9 +4378,9 @@
 	}
 
 	if (pixbuf) {
+		struct im_image_data *t = g_new(struct im_image_data, 1);
 		filename = imhtml->funcs->image_get_filename(image);
 		imhtml->funcs->image_ref(id);
-		struct im_image_data *t = g_new(struct im_image_data, 1);
 		t->id = id;
 		t->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE);
 		imhtml->im_images = g_slist_prepend(imhtml->im_images, t);