mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 12:55:16 +00:00
guard against double uninit (reportedly can happen on STRG+C)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16048 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6555e17422
commit
5414e93721
@ -100,6 +100,7 @@ static int preinit(sh_audio_t *sh) {
|
||||
static void uninit(sh_audio_t *sh) {
|
||||
if (sh->context)
|
||||
free(sh->context);
|
||||
sh->context = NULL;
|
||||
}
|
||||
|
||||
static int init(sh_audio_t *sh) {
|
||||
|
Loading…
Reference in New Issue
Block a user