Accidentally removed mingw32-gettext - readded.
[fedora-mingw.git] / gtk2 / info-leak.patch
1 diff -up gtk+-2.14.2/gdk-pixbuf/gdk-pixbuf-io.c.info-leak gtk+-2.14.2/gdk-pixbuf/gdk-pixbuf-io.c
2 --- gtk+-2.14.2/gdk-pixbuf/gdk-pixbuf-io.c.info-leak    2008-09-18 14:34:02.000000000 -0400
3 +++ gtk+-2.14.2/gdk-pixbuf/gdk-pixbuf-io.c      2008-09-18 14:34:46.000000000 -0400
4 @@ -688,9 +688,10 @@ gdk_pixbuf_load_module_unlocked (GdkPixb
5          if (fill_vtable) {
6                 image_module->module = (void *) 1;
7                  (* fill_vtable) (image_module);
8 -               image_module->info = g_new0 (GdkPixbufFormat, 1);
9 -               (* fill_info) (image_module->info);
10 -
11 +               if (image_module->info == NULL) {
12 +                       image_module->info = g_new0 (GdkPixbufFormat, 1);
13 +                       (* fill_info) (image_module->info);
14 +               }
15                  return TRUE;
16         }
17         else