Fixes NB#121163, crash when selecting special folders in new folder dialog
authorSergio Villar Senin <svillar@igalia.com>
Mon, 8 Jun 2009 07:40:44 +0000 (09:40 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 8 Jun 2009 07:40:44 +0000 (09:40 +0200)
src/modest-ui-actions.c

index dd3275c..27db767 100644 (file)
@@ -3433,14 +3433,10 @@ do_create_folder_performer (gboolean canceled,
        ModestMailOperation *mail_op;
 
        if (canceled || err) {
-               TnyAccount *account = modest_mail_operation_get_account (mail_op);
                /* In disk full conditions we could get this error here */
                modest_tny_account_store_check_disk_full_error (modest_runtime_get_account_store(),
                                                                (GtkWidget *) parent_window, err,
-                                                               account,
-                                                               _("mail_in_ui_folder_create_error_memory"));
-               if (account)
-                       g_object_unref (account);
+                                                               NULL, _("mail_in_ui_folder_create_error_memory"));
 
                /* This happens if we have selected the outbox folder
                   as the parent */