glib r7439 - trunk/gio



Author: tml
Date: Thu Sep  4 20:41:50 2008
New Revision: 7439
URL: http://svn.gnome.org/viewvc/glib?rev=7439&view=rev

Log:
2008-09-04  Tor Lillqvist  <tml novell com>

	* gwin32mount.c (g_win32_mount_finalize): Don't unref icon if
	NULL.



Modified:
   trunk/gio/ChangeLog
   trunk/gio/gwin32mount.c

Modified: trunk/gio/gwin32mount.c
==============================================================================
--- trunk/gio/gwin32mount.c	(original)
+++ trunk/gio/gwin32mount.c	Thu Sep  4 20:41:50 2008
@@ -80,7 +80,10 @@
     _g_win32_volume_unset_mount (mount->volume, mount);
 #endif
   /* TODO: g_warn_if_fail (volume->volume == NULL); */
-  g_object_unref (mount->icon);
+
+  if (mount->icon != NULL)
+    g_object_unref (mount->icon);
+
   g_free (mount->name);
   g_free (mount->mount_path);
   



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