gvfs r1734 - in branches/gnome-2-22: . common



Author: matthiasc
Date: Mon Apr 14 05:41:02 2008
New Revision: 1734
URL: http://svn.gnome.org/viewvc/gvfs?rev=1734&view=rev

Log:
2008-04-14  Matthias Clasen  <mclasen redhat com>

        * common/gmounttracker.c (g_mount_tracker_finalize): Only free
        lock if it is non-NULL. Pointed out by Denis Leroy.




Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/common/gmounttracker.c

Modified: branches/gnome-2-22/common/gmounttracker.c
==============================================================================
--- branches/gnome-2-22/common/gmounttracker.c	(original)
+++ branches/gnome-2-22/common/gmounttracker.c	Mon Apr 14 05:41:02 2008
@@ -236,7 +236,8 @@
 
   tracker = G_MOUNT_TRACKER (object);
 
-  g_mutex_free (tracker->lock);
+  if (tracker->lock)
+    g_mutex_free (tracker->lock);
   
   g_list_foreach (tracker->mounts,
 		  (GFunc)g_mount_info_unref, NULL);



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