diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-05-03 21:48:58 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-05-03 21:48:58 +0300 |
commit | b863100784f74b7effb8cc89633161251e5b9ca7 (patch) | |
tree | 600253aba1a84d2c260123b519c2203e78b378b4 | |
parent | ce35ed0209a01e43f67f16abcd898cf69df078f2 (diff) | |
download | mpv-b863100784f74b7effb8cc89633161251e5b9ca7.tar.bz2 mpv-b863100784f74b7effb8cc89633161251e5b9ca7.tar.xz |
core: Set mpctx->chapters to NULL at uninit
The uninit code called talloc_free(mpctx->chapters) but didn't clear
the pointer. As a result playing a file with ordered chapters and one
without almost certainly triggered an abort when closing the second
file. Fix by setting the pointer to NULL after freeing.
-rw-r--r-- | mplayer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -580,6 +580,7 @@ void uninit_player(struct MPContext *mpctx, unsigned int mask){ mpctx->timeline = NULL; mpctx->num_timeline_parts = 0; talloc_free(mpctx->chapters); + mpctx->chapters = NULL; mpctx->num_chapters = 0; mpctx->video_offset = 0; if(mpctx->demuxer){ |