Extra move assign logic

This commit is contained in:
Jack Andersen 2016-05-17 15:01:37 -10:00
parent a893ee61bb
commit aedbc72766
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,14 @@ IntrusiveAudioGroupData::IntrusiveAudioGroupData(IntrusiveAudioGroupData&& other
IntrusiveAudioGroupData& IntrusiveAudioGroupData::operator=(IntrusiveAudioGroupData&& other) IntrusiveAudioGroupData& IntrusiveAudioGroupData::operator=(IntrusiveAudioGroupData&& other)
{ {
if (m_owns)
{
delete m_pool;
delete m_proj;
delete m_sdir;
delete m_samp;
}
m_owns = other.m_owns; m_owns = other.m_owns;
other.m_owns = false; other.m_owns = false;