aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-14 01:03:14 +0800
committerChristian Persch <chpe@src.gnome.org>2003-07-14 01:03:14 +0800
commit4bf4f76bffb2f7eb18672d26aace9c097b439fb9 (patch)
treee2b1326d8aab6316cebdf715fa959f56c81f3be6 /src
parent8251e7c1e69a39cc178a288aba7a006a9449cc00 (diff)
downloadgsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.gz
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.bz2
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.lz
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.xz
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.zst
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.zip
Fix mem leaks.
2003-07-13 Christian Persch <chpe@cvs.gnome.org> * src/language-editor.c: (language_editor_remove_button_clicked_cb): * embed/downloader-view.c: (downloader_view_set_download_info), (downloader_view_remove_download), (downloader_view_set_download_progress), (downloader_view_set_download_status), (download_dialog_abort_cb): * lib/widgets/ephy-tree-model-sort.c: (ephy_tree_model_sort_multi_row_draggable): Fix mem leaks.
Diffstat (limited to 'src')
-rw-r--r--src/language-editor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/language-editor.c b/src/language-editor.c
index 893693353..84c19ec2e 100644
--- a/src/language-editor.c
+++ b/src/language-editor.c
@@ -212,16 +212,17 @@ language_editor_remove_button_clicked_cb (GtkButton *button,
for (r = rlist; r != NULL; r = r->next)
{
- GtkTreePath *node;
+ GtkTreePath *path;
- node = gtk_tree_row_reference_get_path
+ path = gtk_tree_row_reference_get_path
((GtkTreeRowReference *)r->data);
- gtk_tree_model_get_iter (model, &iter, node);
+ gtk_tree_model_get_iter (model, &iter, path);
gtk_list_store_remove (GTK_LIST_STORE (model), &iter);
gtk_tree_row_reference_free ((GtkTreeRowReference *)r->data);
+ gtk_tree_path_free (path);
}
g_list_foreach (llist, (GFunc)gtk_tree_path_free, NULL);