core: Set mpctx->chapters to NULL at uninit
commitb863100784f74b7effb8cc89633161251e5b9ca7
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 3 May 2009 18:48:58 +0000 (3 21:48 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 3 May 2009 18:48:58 +0000 (3 21:48 +0300)
tree600253aba1a84d2c260123b519c2203e78b378b4
parentce35ed0209a01e43f67f16abcd898cf69df078f2
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.
mplayer.c