mirror of https://github.com/mpv-player/mpv
Fix memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24972 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f057394851
commit
0290988bbd
|
@ -788,6 +788,7 @@ static void demux_close_tv(demuxer_t *demuxer)
|
||||||
tvi_handle_t *tvh=(tvi_handle_t*)(demuxer->priv);
|
tvi_handle_t *tvh=(tvi_handle_t*)(demuxer->priv);
|
||||||
if (!tvh) return;
|
if (!tvh) return;
|
||||||
tv_uninit(tvh);
|
tv_uninit(tvh);
|
||||||
|
free(tvh);
|
||||||
demuxer->priv=NULL;
|
demuxer->priv=NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue