From 85abc8a042fe795d4fb241fbce5b629a6cf71eb4 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sat, 8 Jul 2006 22:45:40 +0000 Subject: [PATCH] Close vorbisfile.library on exit. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2346 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_morphos.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/client/sys_morphos.c b/engine/client/sys_morphos.c index 480ae50b9..dc10ca460 100755 --- a/engine/client/sys_morphos.c +++ b/engine/client/sys_morphos.c @@ -18,6 +18,8 @@ int __stack = 4*1024*1024; struct Library *DynLoadBase; #endif +extern struct Library *VorbisFileBase; + #ifndef CLIENTONLY qboolean isDedicated; #endif @@ -31,6 +33,12 @@ static void Sys_Shutdown() DynLoadBase = 0; } #endif + + if (VorbisFileBase) + { + CloseLibrary(VorbisFileBase); + VorbisFileBase = 0; + } } void Sys_Quit (void)