scoder/lupa — pull request #28 by kmike (2014-10-17 14:01:05+00:00)
Title: fix lock_runtime when called from _LuaObject.__dealloc__. Fixes #27

`self._runtime` can be in a partially destroyed state during `_LuaObject.__dealloc__`, so `lock_lock` can receive a lock that is already destroyed, and this causes bad things to happen. Checking for this condition fixes #27 for me.