Plug a small memory leak
svn path=/trunk/; revision=21451
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-09-19 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdk-pixbuf-io.c: Don't call fill_info if we've already filled
|
||||||
|
the info from the module file, fixes a small memory leak.
|
||||||
|
|
||||||
2008-09-18 Dominic Lachowicz <domlachowicz@gmail.com>
|
2008-09-18 Dominic Lachowicz <domlachowicz@gmail.com>
|
||||||
|
|
||||||
* io-gdip-utils.c: Fix 2 cases where we leaked a GpImage (#552545)
|
* io-gdip-utils.c: Fix 2 cases where we leaked a GpImage (#552545)
|
||||||
|
|||||||
@ -678,9 +678,10 @@ gdk_pixbuf_load_module_unlocked (GdkPixbufModule *image_module,
|
|||||||
if (fill_vtable) {
|
if (fill_vtable) {
|
||||||
image_module->module = (void *) 1;
|
image_module->module = (void *) 1;
|
||||||
(* fill_vtable) (image_module);
|
(* fill_vtable) (image_module);
|
||||||
image_module->info = g_new0 (GdkPixbufFormat, 1);
|
if (image_module->info == NULL) {
|
||||||
(* fill_info) (image_module->info);
|
image_module->info = g_new0 (GdkPixbufFormat, 1);
|
||||||
|
(* fill_info) (image_module->info);
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user