-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
The functions used for raising errors from wxLua bindings (e.g. bad arguments) internally call luaL_error(), which jumps out of the current stack frame, bypassing any C++ object cleanup. Even if glue code is written expecting this, internal functions in wxLua (e.g. wxlua_argerror()) create objects on the stack, which are still leaked.
I think wxlua_error() should instead throw an exception which is caught by the outer layer of wx(Lua) glue code and then turned into a Lua exception.
Metadata
Metadata
Assignees
Labels
No labels