gtk-demo: Fix a crash
authorMatthias Clasen <mclasen@redhat.com>
Sat, 17 Jun 2023 21:54:21 +0000 (17:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 17 Jun 2023 21:56:41 +0000 (17:56 -0400)
This was broken in 6b2c088a29e4a819.

demos/gtk-demo/fontrendering.c

index 9684c5b517fe7f8078355b5c97abd7f4e8721ccb..e8ecd71d2dfea7a362f3ac98ce8e73bcd2ee8b9b 100644 (file)
@@ -306,7 +306,7 @@ retry:
   texture = gdk_texture_new_for_pixbuf (pixbuf2);
   gtk_picture_set_paintable (GTK_PICTURE (image), GDK_PAINTABLE (texture));
   g_object_unref (pixbuf2);
-  g_object_unref (pixbuf2);
+  g_object_unref (texture);
 }
 
 static gboolean fading = FALSE;