mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
The patch fixes a nullpointer dereference and free of NULL in demux_close_xmms
when no matching plugin was found. Alexander.Gottwald@informatik.tu-chemnitz.de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8612 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ac12fb17b6
commit
46f0f3351c
@ -326,8 +326,11 @@ int demux_close_xmms(demuxer_t* demuxer) {
|
||||
xmms_priv_t *priv=demuxer->priv;
|
||||
xmms_playing=0;
|
||||
xmms_audiopos=0; // xmp on exit waits until buffer is free enough
|
||||
if (priv != NULL) {
|
||||
if (priv->ip != NULL)
|
||||
priv->ip->stop();
|
||||
free(priv); xmms_priv=demuxer->priv=NULL;
|
||||
}
|
||||
cleanup_plugins();
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user