gnome-utils r8317 - trunk/logview



Author: cosimoc
Date: Tue Dec 23 13:28:16 2008
New Revision: 8317
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8317&view=rev

Log:
Don't risk to leak a GtkTreePath.

Modified:
   trunk/logview/logview-loglist.c

Modified: trunk/logview/logview-loglist.c
==============================================================================
--- trunk/logview/logview-loglist.c	(original)
+++ trunk/logview/logview-loglist.c	Tue Dec 23 13:28:16 2008
@@ -364,6 +364,12 @@
   LogviewLoglist *list = LOGVIEW_LOGLIST (obj);
 
   g_object_unref (list->priv->model);
+  list->priv->model = NULL;
+
+  if (list->priv->selection) {
+    gtk_tree_path_free (list->priv->selection);
+    list->priv->selection = NULL;
+  }
 
   G_OBJECT_CLASS (logview_loglist_parent_class)->finalize (obj);
 }



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