Oberon00 / luabind

Luabind is a library that helps you create bindings between C++ and Lua.
http://oberon00.github.io/luabind/
Other
46 stars 13 forks source link

Support nil parameter when using adopt policy #40

Closed vilarion closed 4 years ago

vilarion commented 4 years ago

Test if pointer is not null and only then release. This way nil can be passed from Lua to C++ as null when using the adopt policy without crashing the application (by trying to access a member of a null pointer).

This patch is also included in Debian since stretch.

Oberon00 commented 4 years ago

Thank you for the fixes & the fast response!