[Goodies-commits] r3743 - xfce4-notes-plugin/trunk/panel-plugin

Mike Massonnet mmassonnet at xfce.org
Sun Dec 23 23:11:16 CET 2007


Author: mmassonnet
Date: 2007-12-23 22:11:16 +0000 (Sun, 23 Dec 2007)
New Revision: 3743

Modified:
   xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c
Log:
	* panel-plugin/panel-plugin.c(notes_plugin_free): Correctly unref ThunarVfs


Modified: xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c	2007-12-23 22:10:53 UTC (rev 3742)
+++ xfce4-notes-plugin/trunk/panel-plugin/panel-plugin.c	2007-12-23 22:11:16 UTC (rev 3743)
@@ -227,7 +227,18 @@
 {
   notes_plugin_save_data_all (notes_plugin);
 #ifdef HAVE_THUNAR_VFS
-  /* FIXME thunar_vfs_path_unref ... */
+  /* TODO move code out from notes_window_destroy and add notes_window_free
+   * which would only free memory and not corrupt notes or configuration data
+   */
+  NotesWindow *notes_window = NULL;
+  gint i = 0;
+  while (NULL != (notes_window = (NotesWindow *)g_slist_nth_data (notes_plugin->windows, i++)))
+    {
+      thunar_vfs_path_unref (notes_window->thunar_vfs_path);
+      thunar_vfs_monitor_remove (notes_plugin->monitor, notes_window->monitor_handle);
+    }
+  thunar_vfs_path_unref (notes_plugin->thunar_vfs_path);
+  thunar_vfs_monitor_remove (notes_plugin->monitor, notes_plugin->monitor_handle);
   g_object_unref (notes_plugin->monitor);
   thunar_vfs_shutdown ();
 #endif




More information about the Goodies-commits mailing list