Fix a leak of the path (#504611, patch from Sadrul Habib Chowdhury).

2008-01-10  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_path): Fix
	a leak of the path (#504611, patch from Sadrul Habib Chowdhury).


svn path=/trunk/; revision=19332
This commit is contained in:
Kristian Rietveld 2008-01-10 09:27:40 +00:00 committed by Kristian Rietveld
parent 244380529a
commit 496d330181
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-01-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_path): Fix
a leak of the path (#504611, patch from Sadrul Habib Chowdhury).
2008-01-10 Kristian Rietveld <kris@imendio.com>
Fix #477175, reported by Juri Pakaste.

View File

@ -2216,13 +2216,14 @@ gtk_tree_model_filter_get_path (GtkTreeModel *model,
g_return_val_if_fail (GTK_TREE_MODEL_FILTER (model)->priv->child_model != NULL, NULL);
g_return_val_if_fail (GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp, NULL);
retval = gtk_tree_path_new ();
level = iter->user_data;
elt = iter->user_data2;
if (!elt->visible)
return NULL;
retval = gtk_tree_path_new ();
while (level)
{
int i = 0, index = 0;