Merge pull request #8 from Microsoft/coreupdate

merging runtime memory leaks
This commit is contained in:
Peli de Halleux 2016-12-08 16:37:48 -08:00 committed by GitHub
commit 145dbaeb8f

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()