summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authortholin <tholin@nowhere>2014-07-03 23:22:51 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-07-05 00:29:06 +0200
commitc71644b5959f0db19e68f1d5e17ad53ccea46fd4 (patch)
tree385caf6d168130bfe183856dac95ba370e391209 /stream
parent9b18ed8d8b223a726a31c4ee9c8932023bdbb6e3 (diff)
downloadmpv-c71644b5959f0db19e68f1d5e17ad53ccea46fd4.tar.bz2
mpv-c71644b5959f0db19e68f1d5e17ad53ccea46fd4.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)