mirror of
https://github.com/mpv-player/mpv
synced 2025-02-02 13:12:05 +00:00
free tmp earlier, it is not needed below and might leak on errors otherwise
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17769 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6c612f342a
commit
d851f8c22e
@ -120,6 +120,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
|
||||
|
||||
/* decompress the frame */
|
||||
r = lzo1x_decompress (data, len, tmp, &w, priv->wrkmem);
|
||||
free(tmp);
|
||||
|
||||
if (r != LZO_E_OK) {
|
||||
/* this should NEVER happen */
|
||||
@ -142,7 +143,6 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
|
||||
|
||||
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,priv->codec)) return NULL;
|
||||
init_done++;
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
mpi = mpcodecs_get_image(sh, MP_IMGTYPE_TEMP, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user