gpix and gmask just before return to avoid memory leak.
+2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
+ gpix and gmask just before return to avoid memory leak.
+
2004-06-27 Jason Rumney <jasonr@gnu.org>
* w32fns.c (file_dialog_callback): Disable edit control if set
}
}
- g_object_unref (G_OBJECT (gmask));
g_object_unref (G_OBJECT (mask_buf));
}
- g_object_unref (G_OBJECT (gpix));
-
if (! old_widget)
old_widget = GTK_IMAGE (gtk_image_new_from_pixbuf (icon_buf));
else
g_object_unref (G_OBJECT (icon_buf));
}
+ g_object_unref (G_OBJECT (gpix));
+ if (gmask) g_object_unref (G_OBJECT (gmask));
+
return GTK_WIDGET (old_widget);
}