Merge pull request #37 from ramccor/ramccor-patch-1

Dont drop the already dropped source.
This commit is contained in:
Raynaldo Rivera 2016-03-21 15:32:37 -07:00
commit 8edfaec6f0
1 changed files with 0 additions and 12 deletions

View File

@ -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;
}
}