aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/StyleRuleEditor.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-08 21:45:10 +0800
committercrupest <crupest@outlook.com>2022-02-08 21:45:10 +0800
commitae2a748403f3a4879a759820f7a445e41ee5f9df (patch)
tree20076f0366fcd7b4c60626ac687bb6b06b9399b8 /src/theme_builder/components/StyleRuleEditor.cpp
parent5d7dcef619bd1f866684b57351dde2efbda6959c (diff)
downloadcru-ae2a748403f3a4879a759820f7a445e41ee5f9df.tar.gz
cru-ae2a748403f3a4879a759820f7a445e41ee5f9df.tar.bz2
cru-ae2a748403f3a4879a759820f7a445e41ee5f9df.zip
...
Diffstat (limited to 'src/theme_builder/components/StyleRuleEditor.cpp')
-rw-r--r--src/theme_builder/components/StyleRuleEditor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theme_builder/components/StyleRuleEditor.cpp b/src/theme_builder/components/StyleRuleEditor.cpp
index 8b9df6db..1cbeaeb2 100644
--- a/src/theme_builder/components/StyleRuleEditor.cpp
+++ b/src/theme_builder/components/StyleRuleEditor.cpp
@@ -5,7 +5,10 @@ StyleRuleEditor::StyleRuleEditor() {
main_layout_ = ui::controls::FlexLayout::Create();
}
-StyleRuleEditor::~StyleRuleEditor() {}
+StyleRuleEditor::~StyleRuleEditor() {
+ main_layout_->RemoveFromParent();
+ delete main_layout_;
+}
void StyleRuleEditor::BindStyleRule(ui::style::StyleRule *rule) {
style_rule_ = rule;