0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

stream_dvdnav: free pointer to priv->filename on close

CC: @mpv-player/stable

Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
tholin 2014-07-03 23:22:51 +02:00 committed by wm4
parent 4bd75313d1
commit f8a7517fb7

View File

@ -638,6 +638,8 @@ static void stream_dvdnav_close(stream_t *s)
priv->dvdnav = NULL;
if (priv->dvd_speed)
dvd_set_speed(s, priv->filename, -1);
if (priv->filename)
free(priv->filename);
}
static struct priv *new_dvdnav_stream(stream_t *stream, char *filename)