*fixed a wrong disposing bug when accessing a collection by brackets.

This commit is contained in:
paladin-t 2016-01-12 18:50:32 +08:00
parent c8d18f2dda
commit 82ddc8c029
3 changed files with 3 additions and 5 deletions

View File

@ -6,6 +6,7 @@ Fixed some memory leak with lambda
Fixed a multiple disposing bug with string expression calculation
Improved GC with outer scopes of lambda
Fixed some other minor bugs with lambda
Fixed a wrong disposing bug when accessing a collection by brackets
Jan. 11 2016
Fixed a crash bug when a DO-UNTIL statement is the end of a program

View File

@ -3027,13 +3027,10 @@ _routine:
mb_check(mb_attempt_close_bracket(s, (void**)l));
_dispose_object(c);
c = _create_object();
_ls_pushback(garbage, c);
_public_value_to_internal_object(&ret, c);
mb_make_nil(ret);
_internal_object_to_public_value(ocoll, &ret);
_assign_public_value(&ret, 0);
ast = (_ls_node_t*)*l;
}

Binary file not shown.