From 4b4eb5589a35b2ac2a98b825b055d0472f72fc42 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 24 Feb 2003 19:57:54 +0000 Subject: Fixed a memory leak. 2003-02-24 Jeffrey Stedfast * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Fixed a memory leak. svn path=/trunk/; revision=20044 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer-attachment-bar.c | 1 + 2 files changed, 6 insertions(+) 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 + + * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Fixed a + memory leak. + 2003-02-22 Jeffrey Stedfast * 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); } -- cgit