merging runtime memory leaks

This commit is contained in:
Abhijith 2016-12-07 18:00:03 -08:00 committed by Peli de Halleux
parent e30c6f7149
commit 1c8ceaef17

View File

@ -132,6 +132,9 @@ namespace pxt {
if (refmask[i]) decr(r->fields[i]);
r->fields[i] = 0;
}
//RefRecord is allocated using placement new
r->~RefRecord();
::operator delete(r);
}
void RefRecord_print(RefRecord *r)
@ -258,6 +261,9 @@ namespace pxt {
decr(fields[i]);
fields[i] = 0;
}
//RefAction is allocated using placement new
this->~RefAction();
::operator delete(this);
}
void RefAction::print()