bytesicon: don't use g_object_unref() on GBytes
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 26 Apr 2013 21:11:02 +0000 (17:11 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 26 Apr 2013 21:12:39 +0000 (17:12 -0400)
We need to use g_bytes_unref()

https://bugzilla.gnome.org/show_bug.cgi?id=699001

gio/gbytesicon.c

index dc0932a..dea13cc 100644 (file)
@@ -110,7 +110,7 @@ g_bytes_icon_finalize (GObject *object)
 
   icon = G_BYTES_ICON (object);
 
-  g_object_unref (icon->bytes);
+  g_bytes_unref (icon->bytes);
 
   G_OBJECT_CLASS (g_bytes_icon_parent_class)->finalize (object);
 }