aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/deep.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/deep.cpp b/src/deep.cpp
index 10f589e..af7e814 100644
--- a/src/deep.cpp
+++ b/src/deep.cpp
@@ -174,7 +174,11 @@ void DeepFactory::DeleteDeepObject(lua_State* L_, DeepPrelude* o_)
174 lua_insert( L_, -2); // __gc self 174 lua_insert( L_, -2); // __gc self
175 lua_call( L_, 1, 0); // 175 lua_call( L_, 1, 0); //
176 } 176 }
177 // we don't really know what remains on the stack at that point (depending on us finding a __gc or not), but we don't care 177 else
178 {
179 // need an empty stack in case we are GC_ing from a Keeper, so that empty stack checks aren't triggered
180 lua_pop(L_, 2);
181 }
178 DeepFactory::DeleteDeepObject(L_, p); 182 DeepFactory::DeleteDeepObject(L_, p);
179 } 183 }
180 return 0; 184 return 0;