changeset 2134:1cc6ae153b67 trunk

[svn] - use g_object_ref() on the list store when we disassociate to make sure it isn't garbage collected
author nenolod
date Fri, 15 Dec 2006 20:33:34 -0800
parents d6c33d953f95
children dd29f8fd029d
files ChangeLog audacious/mainwin.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Dec 15 20:20:46 2006 -0800
+++ b/ChangeLog	Fri Dec 15 20:33:34 2006 -0800
@@ -1,3 +1,12 @@
+2006-12-16 04:20:46 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3271]
+  - while building the jump to file list, disassociate the GtkListStore 
+    from the GtkTreeView widget which displays the JTF list.
+  
+  trunk/audacious/mainwin.c |    3 +++
+  1 file changed, 3 insertions(+)
+
+
 2006-12-16 02:11:42 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3269]
   - run update-po
--- a/audacious/mainwin.c	Fri Dec 15 20:20:46 2006 -0800
+++ b/audacious/mainwin.c	Fri Dec 15 20:33:34 2006 -0800
@@ -1961,6 +1961,7 @@
      * (row-selected will still eventually arrive once) */
     store = GTK_LIST_STORE(gtk_tree_view_get_model(treeview));
     gtk_list_store_clear(store);
+    g_object_ref(store);
     gtk_tree_view_set_model(treeview, NULL);
 
     PLAYLIST_LOCK();
@@ -2016,6 +2017,7 @@
     PLAYLIST_UNLOCK();
 
     gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store));
+    g_object_unref(store);
 
     if ( regex_list != NULL )
     {