summaryrefslogtreecommitdiffstats
path: root/test/scale_zimg.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/scale_zimg.c')
-rw-r--r--test/scale_zimg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/scale_zimg.c b/test/scale_zimg.c
index e4ab1caa05..5fcea20d45 100644
--- a/test/scale_zimg.c
+++ b/test/scale_zimg.c
@@ -33,9 +33,6 @@ static void run(struct test_ctx *ctx)
repack_test_run(stest);
- talloc_free(stest);
- talloc_free(zimg);
-
FILE *f = test_open_out(ctx, "zimg_formats.txt");
init_imgfmts_list();
for (int n = 0; n < num_imgfmts; n++) {
@@ -51,6 +48,9 @@ static void run(struct test_ctx *ctx)
assert_text_files_equal(stest->ctx, "zimg_formats.txt", "zimg_formats.txt",
"This can fail if FFmpeg/libswscale adds or removes pixfmts.");
+
+ talloc_free(stest);
+ talloc_free(zimg);
}
const struct unittest test_repack_zimg = {