Merge pull request #718 from jquesnelle/topointer-stack-fix

Pop stack element used as argument of lua_topointer
This commit is contained in:
The Phantom Derpstorm 2018-10-17 13:26:51 -07:00 committed by GitHub
commit 2a68514241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -432,6 +432,7 @@ namespace sol {
const void* pointer() const noexcept {
int si = push();
const void* vp = lua_topointer(lua_state(), -si);
lua_pop(this->lua_state(), si);
return vp;
}