summaryrefslogtreecommitdiff
path: root/vpxdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'vpxdec.c')
-rw-r--r--vpxdec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vpxdec.c b/vpxdec.c
index 051a46106..622a4610d 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -864,7 +864,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;
}
@@ -876,6 +877,8 @@ fail:
else
free(buf);
+ if (scaled_img) vpx_img_free(scaled_img);
+
fclose(infile);
free(argv);