Fix an access to unallocated memory in LuaRef
Merge branch 'fix_luaref'
reset mouse grab on game exit. #2739
tabsies/spacies