Skip to content

Commit

Permalink
Uncommented a check to help with crashes in delete processing on Arch…
Browse files Browse the repository at this point in the history
…Linux.

Crash examples with stack traces:
pkulchenko/ZeroBraneStudio#425 (comment)
  • Loading branch information
pkulchenko committed Jul 30, 2016
1 parent cd0e923 commit 1e084fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wxLua/modules/wxlua/wxllua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ bool LUACALL wxluaO_deletegcobject(lua_State *L, int stack_idx, int flags)
void* udata = lua_touserdata(L, stack_idx);
void* obj_ptr = wxlua_touserdata(L, stack_idx, true); // clear lua userdata's ptr

//if (obj_ptr == NULL) return false; // can happen
if (obj_ptr == NULL) return false; // can happen

bool delete_all = WXLUA_HASBIT(flags, WXLUA_DELETE_OBJECT_ALL);

Expand Down

0 comments on commit 1e084fe

Please sign in to comment.