Free the VarEnv the correct way

detach, rather than destroy.
Esse commit está contido em:
Mark Williams
2013-04-19 11:55:31 -07:00
commit de Sara Golemon
commit 39df1a8b20
2 arquivos alterados com 2 adições e 2 exclusões
+1 -1
Ver Arquivo
@@ -63,7 +63,7 @@ c_Continuation::~c_Continuation() {
contLocal->m_type = KindOfNull;
if (ar->hasVarEnv()) {
VM::VarEnv::destroy(ar->getVarEnv());
ar->getVarEnv()->detach(ar);
} else {
frame_free_locals_inl(ar, m_vmFunc->numLocals());
}
+1 -1
Ver Arquivo
@@ -696,7 +696,7 @@ std::string instrToString(const Opcode* it, const Unit* u /* = NULL */) {
#define READOFF() do { \
Offset _value = *(Offset*)it; \
out << " " << _value; \
if (u != nullptr) { \
if (u != nullptr && _value >= 0) { \
out << " (" << u->offsetOf(iStart + _value) << ")"; \
} \
it += sizeof(Offset); \