瀏覽代碼

Don't let other controls have access to a dead container.

Jon Watte 10 年之前
父節點
當前提交
842f095bb8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      gameplay/src/Container.cpp

+ 1 - 0
gameplay/src/Container.cpp

@@ -67,6 +67,7 @@ Container::~Container()
     std::vector<Control*>::iterator it;
     for (it = _controls.begin(); it < _controls.end(); it++)
     {
+        (*it)->_parent = nullptr;
         SAFE_RELEASE((*it));
     }
     SAFE_RELEASE(_layout);