summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2019-08-23 00:31:51 +0100
committerSaracen <SaracenOne@gmail.com>2019-08-23 09:18:42 +0100
commit08ceef2e390ade1800cee3a5c75f4194611f2bb7 (patch)
treed9dd2cb2292fd590932241a36f973c98af1e0113
parentdaf443bcbc8eda493efa55b5ed77575702bcde0c (diff)
Fixes issue with project_default_theme not being dereferenced on cleanup.
-rw-r--r--scene/resources/default_theme/default_theme.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 90787780d3..73f2b0b018 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -893,8 +893,9 @@ void make_default_theme(bool p_hidpi, Ref<Font> p_font) {
void clear_default_theme() {
- Theme::set_default(Ref<Theme>());
- Theme::set_default_icon(Ref<Texture>());
- Theme::set_default_style(Ref<StyleBox>());
- Theme::set_default_font(Ref<Font>());
+ Theme::set_project_default(NULL);
+ Theme::set_default(NULL);
+ Theme::set_default_icon(NULL);
+ Theme::set_default_style(NULL);
+ Theme::set_default_font(NULL);
}