projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed several reference leaks
[modest]
/
src
/
hildon2
/
modest-maemo-utils.c
diff --git
a/src/hildon2/modest-maemo-utils.c
b/src/hildon2/modest-maemo-utils.c
index
f7de85b
..
dfd2658
100644
(file)
--- 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);
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 ();
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;
}
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;
}
} else {
result = FALSE;
}