Skip to content

Commit

Permalink
complain more loudly about memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Nov 24, 2014
1 parent 851f644 commit f21dcf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripting/lua_rng.cpp
Expand Up @@ -46,6 +46,8 @@ int impl_rng_destroy(lua_State* L)
if (d == NULL) {
ERR_LUA << "rng_destroy called on data of type: " << lua_typename( L, lua_type( L, 1 ) ) << std::endl;
ERR_LUA << "This may indicate a memory leak, please report at bugs.wesnoth.org" << std::endl;
lua_pushstring(L, "Rng object garbage collection failure");
lua_error(L);
} else {
d->~mt_rng();
}
Expand Down

0 comments on commit f21dcf0

Please sign in to comment.