aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/LayoutControl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/controls/LayoutControl.h')
-rw-r--r--include/cru/ui/controls/LayoutControl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/controls/LayoutControl.h b/include/cru/ui/controls/LayoutControl.h
index 2ea6ef67..78cc4806 100644
--- a/include/cru/ui/controls/LayoutControl.h
+++ b/include/cru/ui/controls/LayoutControl.h
@@ -14,7 +14,7 @@ class LayoutControl : public Control {
LayoutControl(LayoutControl&& other) = delete;
LayoutControl& operator=(const LayoutControl& other) = delete;
LayoutControl& operator=(LayoutControl&& other) = delete;
- ~LayoutControl() override = default;
+ ~LayoutControl() override { ClearChildren(); }
public:
const std::vector<Control*>& GetChildren() const { return children_; }