Parent Directory | Revision Log | Patch
revision 2057 by iliev, Fri Oct 30 16:36:20 2009 UTC | revision 2058 by persson, Sun Feb 14 11:40:49 2010 UTC | |
---|---|---|
# | Line 217 namespace LinuxSampler { namespace sfz { | Line 217 namespace LinuxSampler { namespace sfz { |
217 | regInfo.file = pResource; | regInfo.file = pResource; |
218 | deleteInstrument = false; | deleteInstrument = false; |
219 | } else { | } else { |
220 | ::sfz::Sample* sf = pRegion->GetSample(false); | pInstr->DestroyRegion(pRegion); |
if (sf != NULL) pInstr->GetSampleManager()->RemoveSampleConsumer(sf, pRegion); | ||
if (sf == NULL || !pInstr->GetSampleManager()->HasSampleConsumers(sf)) pInstr->DestroyRegion(pRegion); | ||
221 | } | } |
222 | } | } |
223 |
|
ViewVC Help | |
Powered by ViewVC |