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 /widgets/misc/e-attachment-bar.c | |
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
Diffstat (limited to 'widgets/misc/e-attachment-bar.c')
-rw-r--r-- | widgets/misc/e-attachment-bar.c | 8 |
1 files changed, 7 insertions, 1 deletions
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) { |