mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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:
parent
244380529a
commit
496d330181
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user