aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chp@cvs.gnome.org>2003-08-09 01:31:54 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-09 01:31:54 +0800
commit35c6e9a25c47c94fac8a7955f398321946e6a3d1 (patch)
treecfc010db022f5495cc6d48082b57fbbf5a764d0f /lib
parent246abf588f7d8b85781ee2cb111296652ed45c8e (diff)
downloadgsoc2013-epiphany-35c6e9a25c47c94fac8a7955f398321946e6a3d1.tar
gsoc2013-epiphany-35c6e9a25c47c94fac8a7955f398321946e6a3d1.tar.gz
gsoc2013-epiphany-35c6e9a25c47c94fac8a7955f398321946e6a3d1.tar.bz2
gsoc2013-epiphany-35c6e9a25c47c94fac8a7955f398321946e6a3d1.tar.lz
gsoc2013-epiphany-35c6e9a25c47c94fac8a7955f398321946e6a3d1.tar.xz
gsoc2013-epiphany-35c6e9a25c47c94fac8a7955f398321946e6a3d1.tar.zst
gsoc2013-epiphany-35c6e9a25c47c94fac8a7955f398321946e6a3d1.zip
Fix mem leaks.
2003-08-08 Christian Persch <chp@cvs.gnome.org> * lib/egg/eggtreemodelfilter.c: (egg_tree_model_filter_row_inserted): Fix mem leaks.
Diffstat (limited to 'lib')
-rw-r--r--lib/egg/eggtreemodelfilter.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/egg/eggtreemodelfilter.c b/lib/egg/eggtreemodelfilter.c
index 4358b94e9..924f6938e 100644
--- a/lib/egg/eggtreemodelfilter.c
+++ b/lib/egg/eggtreemodelfilter.c
@@ -1097,7 +1097,7 @@ egg_tree_model_filter_row_inserted (GtkTreeModel *c_model,
{
EggTreeModelFilter *filter = EGG_TREE_MODEL_FILTER (data);
GtkTreePath *path;
- GtkTreePath *real_path;
+ GtkTreePath *real_path = NULL;
GtkTreeIter iter;
GtkTreeIter real_c_iter;
@@ -1276,14 +1276,19 @@ done_and_emit:
FALSE, TRUE);
if (!path)
- return;
+ goto done;
egg_tree_model_filter_increment_stamp (filter);
gtk_tree_model_get_iter (GTK_TREE_MODEL (data), &iter, path);
gtk_tree_model_row_inserted (GTK_TREE_MODEL (data), path, &iter);
+ gtk_tree_path_free (path);
+
done:
+ if (real_path)
+ gtk_tree_path_free (real_path);
+
if (free_c_path)
gtk_tree_path_free (c_path);
}