Commit b492a7ec authored by Tristan Matthews's avatar Tristan Matthews

vpx: encoder: don't leak image on encoding failure

parent eb82d341
......@@ -478,6 +478,7 @@ static block_t *Encode(encoder_t *p_enc, picture_t *p_pict)
flags, quality);
if (res != VPX_CODEC_OK) {
VPX_ERR(p_enc, ctx, "Failed to encode frame");
vpx_img_free(&img);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment