reftests: Plug a few memory leaks

Noticed in passing.
This commit is contained in:
Matthias Clasen 2021-03-27 16:23:17 -04:00
parent 8540bea65e
commit 7aef77a21a

View File

@ -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