Commit Graph
2 Commits
Author SHA1 Message Date
André Althaus 7fa4676cc4 fix: clear compiler constants buffer in freeCompiler and endCompiler to prevent memory leak
The constants buffer was not being cleared when the compiler finished,
causing a memory leak since ownership of constants is transferred to
the new function via wrenNewFunction. Added wrenValueBufferClear calls
in both freeCompiler and endCompiler to properly release the buffer.
2015-06-03 19:47:16 +00:00
André Althaus 8c9e3c794e fix: replace realloc with custom defaultReallocate to handle zero-size case correctly 2015-06-02 18:57:41 +00:00