X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-platform.c;h=8c787e0f6598cefdee39a6543599eeb03a96b2bc;hb=7fce57ef7b48d57bb3688d58c385a3c21cb23a25;hp=b054cf4e5f61e663af7cc3809bcc087cbb01a1c1;hpb=ea3deadc9da6039595ea0a1c25e16c508959ef33;p=modest diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index b054cf4..8c787e0 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -1748,11 +1748,13 @@ modest_platform_remove_new_mail_notifications (gboolean only_visuals, const gcha } /* Save the ids */ - modest_account_mgr_set_list (modest_runtime_get_account_mgr (), acc_name, - MODEST_ACCOUNT_NOTIFICATION_IDS, - notif_list, MODEST_CONF_VALUE_INT, FALSE); + if (notif_list) { + modest_account_mgr_set_list (modest_runtime_get_account_mgr (), acc_name, + MODEST_ACCOUNT_NOTIFICATION_IDS, + notif_list, MODEST_CONF_VALUE_INT, FALSE); - g_slist_free (notif_list); + g_slist_free (notif_list); + } #endif /* MODEST_HAVE_HILDON_NOTIFY */ }