aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeerapuram Varadhan <vvaradan@src.gnome.org>2005-10-04 19:47:27 +0800
committerVeerapuram Varadhan <vvaradan@src.gnome.org>2005-10-04 19:47:27 +0800
commit4c25c6e7371f116c7df064eca738eb3946fca97a (patch)
treefc505650d72014f8bd32b38bf5ea64845b703f76
parentb99ed7c0b7b40d94b3a6b31e4a670020d33f86b7 (diff)
downloadgsoc2013-evolution-4c25c6e7371f116c7df064eca738eb3946fca97a.tar.gz
gsoc2013-evolution-4c25c6e7371f116c7df064eca738eb3946fca97a.tar.zst
gsoc2013-evolution-4c25c6e7371f116c7df064eca738eb3946fca97a.zip
gtk_pixbuf_add_alpha returns a newly allocated pixbuf, so, free the
* e-attachment-bar.c (update): gtk_pixbuf_add_alpha returns a newly allocated pixbuf, so, free the original one. svn path=/trunk/; revision=30487
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-attachment-bar.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index c4b0eb859c..97431a2a17 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-28 Veerapuram Varadhan <vvaradhan@novell.com>
+
+ * e-attachment-bar.c (update): gtk_pixbuf_add_alpha returns a
+ newly allocated pixbuf, so, free the original one.
+
2005-09-28 Tor Lillqvist <tml@novell.com>
* e-charset-picker.c (e_charset_picker_new,
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index bf951ca699..2903ee4c88 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -361,7 +361,13 @@ update (EAttachmentBar *bar)
}
if (pixbuf) {
- pixbuf = gdk_pixbuf_add_alpha (pixbuf, TRUE, 255, 255, 255);
+ GdkPixbuf* pixbuf_orig = pixbuf;
+ pixbuf = gdk_pixbuf_add_alpha (pixbuf_orig, TRUE, 255, 255, 255);
+
+ /* gdk_pixbuf_add_alpha returns a newly allocated pixbuf,
+ free the original one.
+ */
+ g_object_unref (pixbuf_orig);
/* In case of a attachment bar, in a signed/encrypted part, display the status as a emblem*/
if (attachment->sign) {