mirror of https://github.com/AxioDL/amuse.git
Extra move assign logic
This commit is contained in:
parent
a893ee61bb
commit
aedbc72766
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue