mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-20 12:50:57 +00:00
backup
WeakRefBase is now threadsafe and uses an actual weak_ptr to drive its logic, strongrefbase is next.
This commit is contained in:
parent
1fed963d82
commit
f1f09efbfa
6 changed files with 120 additions and 62 deletions
|
|
@ -1651,10 +1651,17 @@ void GuiPopUpMenuCtrlEx::addChildren()
|
|||
|
||||
void GuiPopUpMenuCtrlEx::removeChildren()
|
||||
{
|
||||
mTl->deleteObject();
|
||||
mSc->deleteObject();
|
||||
mSearchEdit->deleteObject();
|
||||
mBackground->deleteObject();
|
||||
if (mTl && !mTl->isDeleted())
|
||||
mTl->deleteObject();
|
||||
|
||||
if (mSc && !mSc->isDeleted())
|
||||
mSc->deleteObject();
|
||||
|
||||
if (mSearchEdit && !mSearchEdit->isDeleted())
|
||||
mSearchEdit->deleteObject();
|
||||
|
||||
if (mBackground && !mBackground->isDeleted())
|
||||
mBackground->deleteObject();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue