node-editor: Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Thu, 27 Apr 2023 04:51:30 +0000 (06:51 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 27 Apr 2023 11:42:03 +0000 (13:42 +0200)
demos/node-editor/gtkrendererpaintable.c

index cf11db7c0b0a4c15a2848f3078ad409053352ee4..5a88e20a27d41a08a029abcacfc39d9d7f7c29fd 100644 (file)
@@ -78,6 +78,8 @@ gtk_renderer_paintable_paintable_snapshot (GdkPaintable *paintable,
 
   gdk_paintable_snapshot (GDK_PAINTABLE (texture), snapshot, width, height);
   g_object_unref (texture);
+
+  gsk_render_node_unref (node);
 }
 
 static int