libgnomeui r5593 - in trunk: . file-chooser



Author: carlosg
Date: Fri Apr  4 19:21:23 2008
New Revision: 5593
URL: http://svn.gnome.org/viewvc/libgnomeui?rev=5593&view=rev

Log:
2008-04-04  Carlos Garnacho  <carlos imendio com>

        * file-chooser/gtkfilesystemgio.c (gtk_file_system_gio_dispose):
        GVolumeMonitor may survive the GtkFileSystemGio object, disconnect all
        connected signals before disposing the reference to it. Bug #513082.



Modified:
   trunk/ChangeLog
   trunk/file-chooser/gtkfilesystemgio.c

Modified: trunk/file-chooser/gtkfilesystemgio.c
==============================================================================
--- trunk/file-chooser/gtkfilesystemgio.c	(original)
+++ trunk/file-chooser/gtkfilesystemgio.c	Fri Apr  4 19:21:23 2008
@@ -476,7 +476,10 @@
     }
 
   if (impl->volume_monitor)
-    g_object_unref (impl->volume_monitor);
+    {
+      g_signal_handlers_disconnect_by_func (impl->volume_monitor, volumes_drives_changed, impl);
+      g_object_unref (impl->volume_monitor);
+    }
 
   G_OBJECT_CLASS (gtk_file_system_gio_parent_class)->dispose (object);
 }



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