diff options
Diffstat (limited to 'src/ui/ui.c')
-rw-r--r-- | src/ui/ui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c index a72bfa47..73082858 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -872,8 +872,9 @@ meta_ui_reload_theme (MetaUI *ui) theme = load_theme (ui, META_THEME_TYPE_GTK, "Adwaita"); } - g_set_object (&ui->theme, theme); - g_assert (ui->theme); + g_assert (theme); + g_clear_object (&ui->theme); + ui->theme = theme; meta_invalidate_default_icons (); } |