Skip to content

Commit

Permalink
Don't access the interface from the ~RkObjectImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
iurienistor committed Feb 16, 2024
1 parent e76fb2d commit 1d20f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redkite/src/RkObjectImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ RkObject::RkObjectImpl::~RkObjectImpl()
observersList.clear();

// Remove myself from the paren object.
if (inf_ptr->parent())
inf_ptr->parent()->removeChild(inf_ptr);
if (parent())
parent()->removeChild(inf_ptr);
}

void RkObject::RkObjectImpl::removeChildrens()
Expand Down

0 comments on commit 1d20f00

Please sign in to comment.