mirror of https://github.com/mpv-player/mpv
Fix double free in af_resample when reinited with suitable parameters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21033 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
484e74e9d6
commit
97be0637b6
|
@ -173,6 +173,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
|||
if(s->xq[i])
|
||||
free(s->xq[i]);
|
||||
free(s->xq);
|
||||
s->xq = NULL;
|
||||
}
|
||||
|
||||
if(AF_DETACH == (rv = set_types(af,n)))
|
||||
|
|
Loading…
Reference in New Issue