diff options
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r-- | mail/folder-browser-factory.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 3ec1d27c0f..30766c8aa9 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -168,13 +168,10 @@ update_pixmaps (BonoboUIComponent *uic) pixbuf = gdk_pixbuf_new_from_file (path); if (pixbuf == NULL) { g_warning ("Cannot load image -- %s", path); - g_free (path); - return; + } else { + pixcache [i].pixbuf = bonobo_ui_util_pixbuf_to_xml (pixbuf); + gdk_pixbuf_unref (pixbuf); } - - pixcache [i].pixbuf = bonobo_ui_util_pixbuf_to_xml (pixbuf); - - gdk_pixbuf_unref (pixbuf); g_free (path); } |