Found and fixed a memory leak in the rope strings
Also fixed a bit manipulation error in the GC.
This commit is contained in:
@@ -193,6 +193,8 @@ void Toy_assignScope(Toy_Scope* scope, Toy_String* key, Toy_Value value) {
|
||||
return;
|
||||
}
|
||||
|
||||
Toy_freeValue(entryPtr->value);
|
||||
|
||||
entryPtr->value = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user