mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
testsuite: Plug some memory leaks
This commit is contained in:
parent
fcb9048043
commit
b439398d09
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user