diff --git a/core/stack.lua b/core/stack.lua index 4ba86b8..550df53 100644 --- a/core/stack.lua +++ b/core/stack.lua @@ -100,9 +100,8 @@ function context:endSelfRender(time) end function context:destroy() - self.elem:undraw() for i = 1, #self.childrenContexts do - self.childrenContexts[i]:destroy() + self.childrenContexts[i].element:destroy() end end