mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
reftests: Plug a few memory leaks
Noticed in passing.
This commit is contained in:
parent
8540bea65e
commit
7aef77a21a
@ -322,12 +322,16 @@ test_ui_file (GFile *file)
|
|||||||
if (diff_image)
|
if (diff_image)
|
||||||
{
|
{
|
||||||
save_image (diff_image, ui_file, ".diff.png");
|
save_image (diff_image, ui_file, ".diff.png");
|
||||||
|
cairo_surface_destroy (diff_image);
|
||||||
g_test_fail ();
|
g_test_fail ();
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_extra_css (provider);
|
remove_extra_css (provider);
|
||||||
|
|
||||||
g_free (ui_file);
|
g_free (ui_file);
|
||||||
|
|
||||||
|
cairo_surface_destroy (ui_image);
|
||||||
|
cairo_surface_destroy (reference_image);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user