Skip to content

Commit

Permalink
#159 endogeneous config sub-items are no longer removed when meta inf…
Browse files Browse the repository at this point in the history
…o of a config item has been invalidated
  • Loading branch information
MaartenHilferink committed Mar 30, 2023
1 parent 4e9382e commit 4a8004c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tic/dll/src/TreeItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,8 @@ void TreeItem::SetReferredItem(const TreeItem* refItem) const
if (refItem && !_CheckResultObjType(refItem))
refItem = nullptr;

if (mc_RefItem && mc_RefItem->IsCacheRoot() && _GetFirstSubItem()) // when called from destructor, all subitems were already destroyed
TreeItem_RemoveInheritedSubItems(const_cast<TreeItem*>(this)); // only allowed from MainThread()
// if (mc_RefItem && mc_RefItem->IsCacheRoot() && _GetFirstSubItem()) // when called from destructor, all subitems were already destroyed
// TreeItem_RemoveInheritedSubItems(const_cast<TreeItem*>(this)); // only allowed from MainThread()

// remove the old interest
OldRefDecrementer oldRefItemCounter;
Expand Down

0 comments on commit 4a8004c

Please sign in to comment.