fixed an GC issue caused by unbalanced moo_pushtmp() and moo_poptmp() calls
This commit is contained in:
parent
92a21f04b8
commit
b61734a9e8
@ -47,7 +47,7 @@ extend SmallInteger
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Console(Object) from 'console'
|
class Console(Object) from 'con'
|
||||||
{
|
{
|
||||||
method(#primitive) _open.
|
method(#primitive) _open.
|
||||||
method(#primitive) _close.
|
method(#primitive) _close.
|
||||||
|
@ -1527,11 +1527,11 @@ TODO: overcome this problem - accept parameters....
|
|||||||
s1 = moo_makesymbol (moo, objname->ptr, objname->len);
|
s1 = moo_makesymbol (moo, objname->ptr, objname->len);
|
||||||
if (!s1) goto oops;
|
if (!s1) goto oops;
|
||||||
|
|
||||||
moo_pushtmp (moo, (moo_oop_t*)&s1);
|
moo_pushtmp (moo, (moo_oop_t*)&s1); tmp_count++;
|
||||||
s2 = moo_makesymbol (moo, mthname->ptr, mthname->len);
|
s2 = moo_makesymbol (moo, mthname->ptr, mthname->len);
|
||||||
if (!s2) goto oops;
|
if (!s2) goto oops;
|
||||||
|
|
||||||
moo_pushtmp (moo, (moo_oop_t*)&s2);
|
moo_pushtmp (moo, (moo_oop_t*)&s2); tmp_count++;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* create a fake initial context. */
|
/* create a fake initial context. */
|
||||||
|
Loading…
Reference in New Issue
Block a user