testsuite: Plug some memory leaks

This commit is contained in:
Matthias Clasen 2023-06-09 10:59:47 -04:00
parent fcb9048043
commit b439398d09
2 changed files with 7 additions and 0 deletions

View File

@ -392,6 +392,9 @@ test_texture_downloader (void)
g_free (data);
g_bytes_unref (bytes);
gdk_texture_downloader_free (downloader);
g_object_unref (texture2);
g_object_unref (texture);
}
int

View File

@ -481,6 +481,10 @@ main (int argc, char **argv)
gsk_render_node_unref (node);
gsk_renderer_unrealize (renderer);
g_object_unref (renderer);
gdk_surface_destroy (window);
gdk_display_close (gdk_display_get_default ());
return success ? 0 : 1;