We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe5b507 commit f66be72Copy full SHA for f66be72
src/vo_postprocess/text.c
@@ -468,9 +468,15 @@ static void text_done(void *state)
468
469
vf_free(s->in);
470
471
- DestroyMagickWand(s->wand_bg);
472
- DestroyMagickWand(s->wand_text);
473
- DestroyDrawingWand(s->dw);
+ if (s->wand_bg) {
+ DestroyMagickWand(s->wand_bg);
+ }
474
+ if (s->wand_text) {
475
+ DestroyMagickWand(s->wand_text);
476
477
+ if (s->dw) {
478
+ DestroyDrawingWand(s->dw);
479
480
481
free(s->data);
482
free(s->text);
0 commit comments