diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-25 03:57:54 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-25 03:57:54 +0800 |
commit | 4b4eb5589a35b2ac2a98b825b055d0472f72fc42 (patch) | |
tree | 89f836f7bfcb75a3b2f35ce8a89e2287d23980a2 | |
parent | f154a49a01a23a189d6eef3a3668ce01395c9e08 (diff) | |
download | gsoc2013-evolution-4b4eb5589a35b2ac2a98b825b055d0472f72fc42.tar gsoc2013-evolution-4b4eb5589a35b2ac2a98b825b055d0472f72fc42.tar.gz gsoc2013-evolution-4b4eb5589a35b2ac2a98b825b055d0472f72fc42.tar.bz2 gsoc2013-evolution-4b4eb5589a35b2ac2a98b825b055d0472f72fc42.tar.lz gsoc2013-evolution-4b4eb5589a35b2ac2a98b825b055d0472f72fc42.tar.xz gsoc2013-evolution-4b4eb5589a35b2ac2a98b825b055d0472f72fc42.tar.zst gsoc2013-evolution-4b4eb5589a35b2ac2a98b825b055d0472f72fc42.zip |
Fixed a memory leak.
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Fixed a
memory leak.
svn path=/trunk/; revision=20044
-rw-r--r-- | composer/ChangeLog | 5 | ||||
-rw-r--r-- | composer/e-msg-composer-attachment-bar.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 183915d0e7..b75a6c472d 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2003-02-24 Jeffrey Stedfast <fejj@ximian.com> + + * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Fixed a + memory leak. + 2003-02-22 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_set_send_html): Don't save the diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c index 425069fbe6..2b2921fd50 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -242,6 +242,7 @@ pixbuf_for_mime_type (const char *mime_type) fm_icon = g_strdup_printf ("nautilus/%s", icon_name); filename = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_PIXMAP, fm_icon, TRUE, NULL); if (!filename) { + g_free (fm_icon); fm_icon = g_strdup_printf ("mc/%s", icon_name); filename = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_PIXMAP, fm_icon, TRUE, NULL); } |