summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-02 17:39:18 +0200
committerwm4 <wm4@nowhere>2020-05-06 15:27:25 +0200
commite567d0637730203d4ee6529dba470f69d54a0f42 (patch)
tree176df05c8379c54d39cd0db13b2af9d0c2b4a0b1
parentb2720dba0f7427cf23be889f7c87ab25d9c6da85 (diff)
downloadmpv-e567d0637730203d4ee6529dba470f69d54a0f42.tar.bz2
mpv-e567d0637730203d4ee6529dba470f69d54a0f42.tar.xz
test: fix some idiotic UB
-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 = {