diff options
Diffstat (limited to 'widgets/misc')
-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) { |