From 53a81d22ea828bed6baded64d1add0b255f94efc Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Mon, 19 Nov 2007 18:22:08 +0000 Subject: [PATCH 1/1] Remove GLIB CRITICAL pmo-trunk-r3772 --- src/modest-mail-operation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 8b67e5b..ae8efe2 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -971,7 +971,7 @@ modest_mail_operation_save_to_drafts_cb (ModestMailOperation *self, if (!priv->error) { SaveToDraftsAddMsgInfo *cb_info = g_slice_new(SaveToDraftsAddMsgInfo); cb_info->transport_account = g_object_ref(info->transport_account); - cb_info->draft_msg = g_object_ref(info->draft_msg); + cb_info->draft_msg = info->draft_msg ? g_object_ref(info->draft_msg) : NULL; cb_info->callback = info->callback; cb_info->user_data = info->user_data; cb_info->drafts = g_object_ref(drafts); -- 1.7.9.5