diff options
Diffstat (limited to 'vpxdec.c')
-rw-r--r-- | vpxdec.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -857,7 +857,8 @@ int main_loop(int argc, const char **argv_) { fail: if (vpx_codec_destroy(&decoder)) { - fprintf(stderr, "Failed to destroy decoder: %s\n", vpx_codec_error(&decoder)); + fprintf(stderr, "Failed to destroy decoder: %s\n", + vpx_codec_error(&decoder)); return EXIT_FAILURE; } @@ -869,6 +870,8 @@ fail: else free(buf); + if (scaled_img) vpx_img_free(scaled_img); + fclose(infile); free(argv); |