testsuite: Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Wed, 31 May 2023 02:37:03 +0000 (22:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 31 May 2023 02:37:03 +0000 (22:37 -0400)
testsuite/gdk/memorytexture.c

index a675fff59d4d65595300843923c00ded0d6264b2..6d55ffb252446041edbf4c15ed81c6febe67258e 100644 (file)
@@ -1064,6 +1064,7 @@ ensure_texture_format (GdkTexture      *texture,
                                    format,
                                    bytes,
                                    stride);
+  g_bytes_unref (bytes);
   g_object_unref (texture);
 
   return result;