From 438bfa00cf954e9b67f098e4cab00fbb6d52a50c Mon Sep 17 00:00:00 2001 From: "Kenneth C. Arnold" <kcarnold@xiph.org> Date: Sun, 17 Dec 2000 13:24:10 +0000 Subject: [PATCH] Fix for case where ao_initialize is called after ao_shutdown. git-svn-id: http://svn.xiph.org/trunk/ao@1118 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- src/audio_out.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/audio_out.c b/src/audio_out.c index 509b327..b61ba10 100644 --- a/src/audio_out.c +++ b/src/audio_out.c @@ -161,6 +161,9 @@ void ao_shutdown(void) /* free the standard drivers */ if (driver_head->next) free(driver_head->next); if (driver_head->next) free(driver_head); + + /* NULL out driver_head or ao_initialize won't work */ + driver_head = NULL; } int ao_get_driver_id(const char *short_name) -- GitLab