luabind/luabind — pull request #14 by vilarion (2012-09-22 23:49:14+00:00)
Title: Support nil parameter when using adopt policy

Test if pointer is null and only release if that is the case.
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).