gtk+ r21452 - branches/gtk-2-14/gdk-pixbuf
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21452 - branches/gtk-2-14/gdk-pixbuf
- Date: Fri, 19 Sep 2008 14:36:07 +0000 (UTC)
Author: matthiasc
Date: Fri Sep 19 14:36:07 2008
New Revision: 21452
URL: http://svn.gnome.org/viewvc/gtk+?rev=21452&view=rev
Log:
Plug a small memory leak
Modified:
branches/gtk-2-14/gdk-pixbuf/ChangeLog
branches/gtk-2-14/gdk-pixbuf/gdk-pixbuf-io.c
Modified: branches/gtk-2-14/gdk-pixbuf/gdk-pixbuf-io.c
==============================================================================
--- branches/gtk-2-14/gdk-pixbuf/gdk-pixbuf-io.c (original)
+++ branches/gtk-2-14/gdk-pixbuf/gdk-pixbuf-io.c Fri Sep 19 14:36:07 2008
@@ -678,9 +678,10 @@
if (fill_vtable) {
image_module->module = (void *) 1;
(* fill_vtable) (image_module);
- image_module->info = g_new0 (GdkPixbufFormat, 1);
- (* fill_info) (image_module->info);
-
+ if (image_module->info == NULL) {
+ image_module->info = g_new0 (GdkPixbufFormat, 1);
+ (* fill_info) (image_module->info);
+ }
return TRUE;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]