From: Sergio Villar Senin Date: Mon, 2 Feb 2009 16:04:06 +0000 (+0000) Subject: * Fixes NB#100159, added a missing NULL check to fix a crash X-Git-Tag: git_migration_finished~680 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=5f177809566702383a927c41ef000d93bde99727 * Fixes NB#100159, added a missing NULL check to fix a crash pmo-trunk-r7363 --- diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 8b387a8..df8fd8b 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -5896,10 +5896,12 @@ do_headers_action (ModestWindow *win, /* Trick: do a poke status in order to speed up the signaling of observers */ - tny_folder_poke_status (folder); + if (folder) { + tny_folder_poke_status (folder); + g_object_unref (folder); + } /* Frees */ - g_object_unref (folder); g_object_unref (iter); g_object_unref (headers_list); }