diff options
author | Veerapuram Varadhan <vvaradan@src.gnome.org> | 2005-10-04 19:47:27 +0800 |
---|---|---|
committer | Veerapuram Varadhan <vvaradan@src.gnome.org> | 2005-10-04 19:47:27 +0800 |
commit | 4c25c6e7371f116c7df064eca738eb3946fca97a (patch) | |
tree | fc505650d72014f8bd32b38bf5ea64845b703f76 | |
parent | b99ed7c0b7b40d94b3a6b31e4a670020d33f86b7 (diff) | |
download | gsoc2013-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/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/misc/e-attachment-bar.c | 8 |
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) { |