[lugaru] 01/01: Fix SIGSEGV on exit

Vincent Prat vivicoder-guest at moszumanska.debian.org
Thu Sep 7 10:30:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

vivicoder-guest pushed a commit to branch master
in repository lugaru.

commit 8a06b91f410adcc83dacfe2a978bcd34eb246a03
Author: Vincent Prat <vinceprat at free.fr>
Date:   Thu Sep 7 11:29:39 2017 +0100

    Fix SIGSEGV on exit
---
 debian/changelog               |  1 +
 debian/patches/fix_alc_cleanup | 21 +++++++++++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8c79cb2..9969361 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ lugaru (1.2-2) unstable; urgency=medium
 
   * Install appdata file in /usr/share/metainfo
   * Multi-arch metadata for lugaru-data added
+  * Fix alc_cleanup error on exit (Closes: #874086)
 
  -- Vincent Prat <vinceprat at free.fr>  Tue, 05 Sep 2017 23:24:12 +0100
 
diff --git a/debian/patches/fix_alc_cleanup b/debian/patches/fix_alc_cleanup
new file mode 100644
index 0000000..29e37ff
--- /dev/null
+++ b/debian/patches/fix_alc_cleanup
@@ -0,0 +1,21 @@
+Author: Vincent Prat <vinceprat at free.fr>
+Description: Fix alc_cleanup error that may cause SIGSEGV on exit
+--- 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()
diff --git a/debian/patches/series b/debian/patches/series
index 94dd092..f73ec9b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+fix_alc_cleanup
 install_appdata_in_metainfo
 Fix-mismatched-usage-length-build-fail-on-g.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/lugaru.git



More information about the Pkg-games-commits mailing list