1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

fix a memory leak when playing several files in a row (playlist for instance)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10960 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2003-09-29 09:53:27 +00:00
parent 9cfe23dcda
commit 69e7b17327

View File

@ -1270,8 +1270,14 @@ if(!use_stdin && !slave_mode){
stream=NULL;
demuxer=NULL;
d_audio=NULL;
d_video=NULL;
if (d_audio) {
free_demuxer_stream(d_audio);
d_audio=NULL;
}
if (d_video) {
free_demuxer_stream(d_video);
d_video=NULL;
}
sh_audio=NULL;
sh_video=NULL;