From: Sergio Villar Senin Date: Thu, 16 Oct 2008 18:02:02 +0000 (+0000) Subject: * Fixes NB#90187, frees a memory leak X-Git-Tag: git_migration_finished~1146 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=19f8b1a1c297bfab1369f355f7a0b536e3dbff8f * Fixes NB#90187, frees a memory leak pmo-trunk-r6073 --- diff --git a/src/hildon2/modest-msg-edit-window.c b/src/hildon2/modest-msg-edit-window.c index 16d6157..631e0d5 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -1008,6 +1008,8 @@ pixbuf_from_stream (TnyStream *stream, const gchar *mime_type, guint64 *stream_s readed = tny_stream_read (TNY_STREAM (stream), (char *) read_buffer, 128); size += readed; if (!gdk_pixbuf_loader_write (loader, read_buffer, readed, &error)) { + if (error) + g_error_free (error); break; } }