MCPcopy Create free account
hub / github.com/LMMS/lmms / freeInstance

Method freeInstance

plugins/GigPlayer/GigPlayer.cpp:181–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181void GigInstrument::freeInstance()
182{
183 QMutexLocker synthLock( &m_synthMutex );
184 QMutexLocker notesLock( &m_notesMutex );
185
186 if( m_instance != NULL )
187 {
188 delete m_instance;
189 m_instance = NULL;
190
191 // If we're changing instruments, we got to make sure that we
192 // remove all pointers to the old samples and don't try accessing
193 // that instrument again
194 m_instrument = NULL;
195 m_notes.clear();
196 }
197}
198
199
200

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected