Closed vilarion closed 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.
Thank you for the fixes & the fast response!
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.