2854 |
// just in case a new sample is added later with exactly the same memory |
// just in case a new sample is added later with exactly the same memory |
2855 |
// address, which would lead to incorrect refcount if not deleted here |
// address, which would lead to incorrect refcount if not deleted here |
2856 |
for (std::list<gig::Sample*>::const_iterator it = samples.begin(); |
for (std::list<gig::Sample*>::const_iterator it = samples.begin(); |
2857 |
it != samples.end(); it != samples.end()) |
it != samples.end(); ++it) |
2858 |
{ |
{ |
2859 |
sample_ref_count.erase(*it); |
sample_ref_count.erase(*it); |
2860 |
} |
} |