diff options
Diffstat (limited to 'include/cru/ui/controls/SingleChildControl.h')
-rw-r--r-- | include/cru/ui/controls/SingleChildControl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/controls/SingleChildControl.h b/include/cru/ui/controls/SingleChildControl.h index e733c825..b2e58c5f 100644 --- a/include/cru/ui/controls/SingleChildControl.h +++ b/include/cru/ui/controls/SingleChildControl.h @@ -13,7 +13,7 @@ class SingleChildControl : public Control { CRU_DELETE_COPY(SingleChildControl) CRU_DELETE_MOVE(SingleChildControl) - ~SingleChildControl() override {} + ~SingleChildControl() override { SetChild(nullptr); } Control* GetChild() const { return child_; } void SetChild(Control* child) { |