aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-image-chooser.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 13936ecee5..4d1d6a5507 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-24 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fixes bug #322789
+
+ * e-image-chooser.c: (set_image_from_data): Added code to get the
+ pixbuf after closing the loaded.
+
2006-02-13 Andre Klapper <a9016009@gmx.de>
* e-charset-picker.c: adding thai support.
diff --git a/widgets/misc/e-image-chooser.c b/widgets/misc/e-image-chooser.c
index f20b0a646d..cc89ce48d3 100644
--- a/widgets/misc/e-image-chooser.c
+++ b/widgets/misc/e-image-chooser.c
@@ -233,11 +233,12 @@ set_image_from_data (EImageChooser *chooser,
GdkPixbuf *pixbuf;
gdk_pixbuf_loader_write (loader, data, length, NULL);
-
+ gdk_pixbuf_loader_close (loader, NULL);
+
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
if (pixbuf)
g_object_ref (pixbuf);
- gdk_pixbuf_loader_close (loader, NULL);
+
g_object_unref (loader);
if (pixbuf) {