* fixed bug which crashed modest after sending an email with attachment(s). The attac...
authorArne Zellentin <arne@kernelconcepts.de>
Wed, 21 Jun 2006 17:48:53 +0000 (17:48 +0000)
committerArne Zellentin <arne@kernelconcepts.de>
Wed, 21 Jun 2006 17:48:53 +0000 (17:48 +0000)
pmo-trunk-r312

src/gtk-glade/modest-ui-message-editor.c
src/modest-editor-window.c

index 4171aa0..ba20a8d 100644 (file)
@@ -532,7 +532,7 @@ on_send_button_clicked (GtkWidget *widget, ModestEditorWindow *modest_editwin)
                                                   body,
                                                   attachments);
 
-       modest_tny_attachment_free_list(attachments);
+       modest_editor_window_set_attachments(modest_editwin, NULL); /* This unrefs them, too. */
        g_free (body);
        g_object_unref (G_OBJECT(actions));
 
index 7f1c338..7c36918 100644 (file)
@@ -98,7 +98,7 @@ modest_editor_window_finalize (GObject *obj)
        if (priv->user_data)
                g_free(priv->user_data);
 
-       modest_tny_attachment_free_list(priv->attachments);
+       modest_editor_window_set_attachments(MODEST_EDITOR_WINDOW(obj), NULL);
        g_free(priv->identity);
        g_free(priv->transport);