gtk+ r19332 - in trunk: . gtk



Author: kristian
Date: Thu Jan 10 09:27:40 2008
New Revision: 19332
URL: http://svn.gnome.org/viewvc/gtk+?rev=19332&view=rev

Log:
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).



Modified:
   trunk/ChangeLog
   trunk/gtk/gtktreemodelfilter.c

Modified: trunk/gtk/gtktreemodelfilter.c
==============================================================================
--- trunk/gtk/gtktreemodelfilter.c	(original)
+++ trunk/gtk/gtktreemodelfilter.c	Thu Jan 10 09:27:40 2008
@@ -2216,13 +2216,14 @@
   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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]