| 201 | } |
| 202 | |
| 203 | void |
| 204 | EffectInstance::clearPluginMemoryChunks() |
| 205 | { |
| 206 | // This will remove the mem from the pluginMemoryChunks list |
| 207 | QMutexLocker l(&_imp->pluginMemoryChunksMutex); |
| 208 | for (std::list<PluginMemoryWPtr>::iterator it = _imp->pluginMemoryChunks.begin(); it!=_imp->pluginMemoryChunks.end(); ++it) { |
| 209 | PluginMemoryPtr mem = it->lock(); |
| 210 | if (!mem) { |
| 211 | continue; |
| 212 | } |
| 213 | mem->setUnregisterOnDestructor(false); |
| 214 | } |
| 215 | _imp->pluginMemoryChunks.clear(); |
| 216 | } |
| 217 | |
| 218 | #ifdef DEBUG |
| 219 | void |
no test coverage detected