Check null value of account before unref in on_open_message_performer (fix 7 for...
[modest] / src / dbus_api / modest-dbus-callbacks.c
index ffc0be7..ca225ba 100644 (file)
@@ -627,7 +627,8 @@ on_open_message_performer (gboolean canceled,
                                        gtk_widget_show_all (GTK_WIDGET (msg_view));
                                }
                        }
-                       g_object_unref (account);
+                       if (account)
+                               g_object_unref (account);
 
                }
                on_find_msg_async_destroy (info);