summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authortholin <tholin@nowhere>2014-07-03 23:22:51 +0200
committerwm4 <wm4@nowhere>2014-07-04 02:24:50 +0200
commitf8a7517fb73f6837d3a9df9f83cceed6ff726190 (patch)
tree5e7bc5ee0179fe2d773e25673c0a0601c67fb46a /stream
parent4bd75313d1cc213c2671ecb3370dd99cd9103300 (diff)
downloadmpv-f8a7517fb73f6837d3a9df9f83cceed6ff726190.tar.bz2
mpv-f8a7517fb73f6837d3a9df9f83cceed6ff726190.tar.xz
stream_dvdnav: free pointer to priv->filename on close
CC: @mpv-player/stable Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvdnav.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index cc6c16ae9b..6b5b4ef14b 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -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)