]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
call FS_ClearSearchPath in FS_Shutdown
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 May 2007 20:17:21 +0000 (20:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 May 2007 20:17:21 +0000 (20:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7341 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 916bb960f98d21e4bfbe54f6a7f31aba0667cdf9..40ec10a61ee94461039914bbca8505b57824fcf4 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1404,6 +1404,10 @@ FS_Shutdown
 */
 void FS_Shutdown (void)
 {
+       // close all pack files and such
+       // (hopefully there aren't any other open files, but they'll be cleaned up
+       //  by the OS anyway)
+       FS_ClearSearchPath();
        Mem_FreePool (&fs_mempool);
 }