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:
reimar 2006-03-08 10:50:16 +00:00
parent 6c612f342a
commit d851f8c22e
1 changed files with 1 additions and 1 deletions

View File

@ -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,