dfdc7a3091
Copy from multimedia:libs/libmikmod based on submit request 27748 from user tiwai OBS-URL: https://build.opensuse.org/request/show/27748 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmikmod?expand=0&rev=12
23 lines
860 B
Diff
23 lines
860 B
Diff
Date: 15 Apr 2002 11:01:19 +0200
|
|
From: Guillaume Cottenceau <gc@mandrakesoft.com>
|
|
|
|
Unfortunately, I should have double checked that the following
|
|
fix (authored by Dave Goehrig <dave@cthulhu-burger.org>, not me),
|
|
was really in the CVS... it's not, as of stable 1.2.3 at least.
|
|
Please include it, it fixes a segfault on exiting a program which
|
|
disabled MOD music during its execution.
|
|
|
|
Index: libmikmod-3.1.12/playercode/virtch_common.c
|
|
===================================================================
|
|
--- libmikmod-3.1.12.orig/playercode/virtch_common.c
|
|
+++ libmikmod-3.1.12/playercode/virtch_common.c
|
|
@@ -347,7 +347,7 @@ void VC1_VoiceSetPanning(UBYTE voice,ULO
|
|
|
|
void VC1_SampleUnload(SWORD handle)
|
|
{
|
|
- if (handle<MAXSAMPLEHANDLES) {
|
|
+ if (Samples && handle<MAXSAMPLEHANDLES) {
|
|
if (Samples[handle])
|
|
free(Samples[handle]);
|
|
Samples[handle]=NULL;
|