Don't unref icon if NULL.
authorTor Lillqvist <tml@novell.com>
Thu, 4 Sep 2008 20:41:50 +0000 (20:41 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 4 Sep 2008 20:41:50 +0000 (20:41 +0000)
2008-09-04  Tor Lillqvist  <tml@novell.com>

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

svn path=/trunk/; revision=7439

gio/ChangeLog
gio/gwin32mount.c

index 8e8733aca5ed29f9458764b9a0b2d83445d554e4..9681f53774d4916619b71857190b0054327b74ec 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-04  Tor Lillqvist  <tml@novell.com>
+
+       * gwin32mount.c (g_win32_mount_finalize): Don't unref icon if
+       NULL.
+
 2008-09-02  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.18.0 ===
index 511bd763d7e0cc4de577793d5056418bf11d88d2..98ae45e296a17c6f67d80a6ee2949b80f4bcdbfc 100644 (file)
@@ -80,7 +80,10 @@ g_win32_mount_finalize (GObject *object)
     _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);