summaryrefslogtreecommitdiffstats
path: root/test/repack.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/repack.c')
-rw-r--r--test/repack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/repack.c b/test/repack.c
index aa9c804308..a2f4a97b83 100644
--- a/test/repack.c
+++ b/test/repack.c
@@ -365,8 +365,8 @@ static bool try_draw_bmp(FILE *f, int imgfmt)
.num_items = 1,
};
- struct mp_draw_sub_cache *c = NULL;
- if (mp_draw_sub_bitmaps(&c, dst, &sbs_list)) {
+ struct mp_draw_sub_cache *c = mp_draw_sub_alloc(NULL);
+ if (mp_draw_sub_bitmaps(c, dst, &sbs_list)) {
char *info = mp_draw_sub_get_dbg_info(c);
fprintf(f, "%s\n", info);
talloc_free(info);