From 9dde4e4062d3904c99100b0e8c32bedd76b8120f Mon Sep 17 00:00:00 2001 From: Ronald McCormick Date: Thu, 11 Feb 2016 14:24:02 -0600 Subject: [PATCH 1/2] Dont drop the already dropped source. --- cAudio/src/cAudioManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cAudio/src/cAudioManager.cpp b/cAudio/src/cAudioManager.cpp index 68bf596..60996e4 100644 --- a/cAudio/src/cAudioManager.cpp +++ b/cAudio/src/cAudioManager.cpp @@ -368,8 +368,8 @@ namespace cAudio if(audio != NULL) return audio; - if(source) - source->drop(); + // if(source) + // source->drop(); } return NULL; } From c1c2441a2ae3f1db063a4bd1459960e06da51418 Mon Sep 17 00:00:00 2001 From: Ronald McCormick Date: Tue, 16 Feb 2016 15:52:33 -0600 Subject: [PATCH 2/2] Update cAudioManager.cpp --- cAudio/src/cAudioManager.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cAudio/src/cAudioManager.cpp b/cAudio/src/cAudioManager.cpp index 60996e4..9dc1f4a 100644 --- a/cAudio/src/cAudioManager.cpp +++ b/cAudio/src/cAudioManager.cpp @@ -334,9 +334,6 @@ namespace cAudio if(audio != NULL) return audio; - //if(source) - // source->drop(); - return NULL; } } @@ -367,9 +364,6 @@ namespace cAudio IAudioSource* audio = createAudioSource(decoder, audioName, _CTEXT("cMemorySource")); if(audio != NULL) return audio; - - // if(source) - // source->drop(); } return NULL; } @@ -401,9 +395,6 @@ namespace cAudio IAudioSource* audio = createAudioSource(decoder, audioName, _CTEXT("cMemorySource")); if(audio != NULL) return audio; - - if(source) - source->drop(); } return NULL; } @@ -439,9 +430,6 @@ namespace cAudio if(buffer != NULL) return buffer; - //if(source) - // source->drop(); - return NULL; } }