From: Alberto Garcia Date: Mon, 19 Nov 2007 17:11:42 +0000 (+0000) Subject: Fix several important leaks in the msg edit window X-Git-Tag: git_migration_finished~2062 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=8f7aad0dd79ba73052e58292a8b76582b8fdfa23 Fix several important leaks in the msg edit window Fixes NB#75751 pmo-trunk-r3769 --- diff --git a/src/maemo/modest-msg-edit-window.c b/src/maemo/modest-msg-edit-window.c index 5e113d9..3c0b0bc 100644 --- a/src/maemo/modest-msg-edit-window.c +++ b/src/maemo/modest-msg-edit-window.c @@ -804,10 +804,14 @@ modest_msg_edit_window_finalize (GObject *obj) g_object_unref (priv->outbox_msg); priv->outbox_msg = NULL; } - if (priv->msg_uid != NULL) { - g_free (priv->msg_uid); - priv->msg_uid = NULL; - } + g_free (priv->msg_uid); + g_free (priv->last_search); + g_slist_free (priv->font_items_group); + g_slist_free (priv->size_items_group); + g_list_foreach (priv->attachments, (GFunc) g_object_unref, NULL); + g_list_free (priv->attachments); + g_list_foreach (priv->images, (GFunc) g_object_unref, NULL); + g_list_free (priv->images); /* This had to stay alive for as long as the combobox that used it: */ modest_pair_list_free (priv->from_field_protos);