Репозитории ALT
S: | 3.3.11.1-alt2 |
5.1: | 3.1.11-alt0.8 |
4.1: | 3.1.11-alt0.4 |
4.0: | 3.1.11-alt0.2 |
3.0: | 3.1.10-alt3 |
Группа :: Система/Библиотеки
Пакет: libmikmod
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: libmikmod-3.1.12-mdk-virtch_common-fix.patch
Скачать
Скачать
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.
--- playercode/virtch_common.c
+++ 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;