From cb0ce43bfca0fc79cc53829096b16dd896978e25 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 15 Aug 2010 23:50:47 +0000 Subject: [PATCH] spu: fix a sort of a memory leak when synch mode was selected but output was disabled. this may have been done for a reason....? --- desmume/src/SPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index f8549332f..658ad2d0f 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -1360,7 +1360,7 @@ void SPU_Emulate_core() bool mix = driver->AVI_IsRecording() || driver->WAV_IsRecording() || synchronize; SPU_MixAudio(mix,SPU_core,spu_core_samples); - if(synchronize) + if(synchronize && SPU_user) synchronizer->enqueue_samples(SPU_core->outbuf, spu_core_samples); }