File: fix_alc_cleanup

package info (click to toggle)
lugaru 1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 39,728 kB
  • sloc: cpp: 29,640; ansic: 537; sh: 34; xml: 28; makefile: 15
file content (22 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Vincent Prat <vivi@debian.org>
Description: Fix alc_cleanup error that may cause SIGSEGV on exit
Forwarded: not-needed
--- a/Source/GameInitDispose.cpp
+++ b/Source/GameInitDispose.cpp
@@ -88,16 +88,11 @@
 
     OPENAL_StopSound(OPENAL_ALL);
 
-// this is causing problems on Linux, but we'll force an _exit() a little
-//  later in the shutdown process.  --ryan.
-#if !PLATFORM_LINUX
-
     for (int i = 0; i < sounds_count; ++i) {
         OPENAL_Sample_Free(samp[i]);
     }
 
     OPENAL_Close();
-#endif
 }
 
 void Game::newGame()