X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-maemo-utils.c;h=dfd26589c5e777fbe80078335d7f95a43996d989;hp=f7de85b4bd44eb08a762c1c08d96380dcf904539;hb=890cdf6655a56ebb2a860c01bedbe15a59e7d9dd;hpb=4fda51ad4fd87952deef84366884dff6a7c447fd;ds=sidebyside diff --git a/src/hildon2/modest-maemo-utils.c b/src/hildon2/modest-maemo-utils.c index f7de85b..dfd2658 100644 --- a/src/hildon2/modest-maemo-utils.c +++ b/src/hildon2/modest-maemo-utils.c @@ -536,9 +536,10 @@ modest_maemo_utils_select_attachments (GtkWindow *window, TnyList *att_list, gbo gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, filename, 1, part, -1); attachments_added ++; g_free (filename); - g_object_unref (part); } + g_object_unref (part); } + g_object_unref (iterator); selector = GTK_WIDGET (hildon_touch_selector_new ()); renderer = gtk_cell_renderer_text_new (); @@ -572,6 +573,9 @@ modest_maemo_utils_select_attachments (GtkWindow *window, TnyList *att_list, gbo } if (tny_list_get_length (att_list) == 0) result = FALSE; + + g_list_foreach (selected_rows, (GFunc) gtk_tree_path_free, NULL); + g_list_free (selected_rows); } else { result = FALSE; }