vlc/vlc-2.2 | branch: master | Tristan Matthews <[email protected]> | Sun Mar 22 18:01:26 2015 -0400| [4148fb1d8dd574d7a71e6e4f7ac7eaba592e4c8c] | committer: Jean-Baptiste Kempf
vpx: fix leak (cherry picked from commit 3682cdd28fed93c43d36116ae443fb50224d27cf) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=4148fb1d8dd574d7a71e6e4f7ac7eaba592e4c8c --- modules/codec/vpx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c index ac7d8d7..1707e72 100644 --- a/modules/codec/vpx.c +++ b/modules/codec/vpx.c @@ -103,8 +103,10 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block) const void *iter = NULL; struct vpx_image *img = vpx_codec_get_frame(ctx, &iter); - if (!img) + if (!img) { + free(pkt_pts); return NULL; + } /* fetches back the PTS */ pkt_pts = img->user_priv; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
