Check null value of account before unref in on_open_message_performer (fix 7 for...
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Jul 2009 10:07:31 +0000 (12:07 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Jul 2009 10:21:54 +0000 (12:21 +0200)
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));
                                }
                        }
                                        gtk_widget_show_all (GTK_WIDGET (msg_view));
                                }
                        }
-                       g_object_unref (account);
+                       if (account)
+                               g_object_unref (account);
 
                }
                on_find_msg_async_destroy (info);
 
                }
                on_find_msg_async_destroy (info);