diff options
author | Robert Antoni Buj Gelonch <[email protected]> | 2022-06-02 09:38:16 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-06-02 09:38:16 +0200 |
commit | 83ff6350e806d3c03cc549ff576dcb4867d4d8f4 (patch) | |
tree | df0c4d6e2e322cae2fedb6e10fcdc7fffd0c0111 /applets/notification_area/na-grid.c | |
parent | 81e549c8870e19a379bc999e4f7f7faa7b8042c6 (diff) | |
download | mate-panel-83ff6350e806d3c03cc549ff576dcb4867d4d8f4.tar.bz2 mate-panel-83ff6350e806d3c03cc549ff576dcb4867d4d8f4.tar.xz |
notification_area: Reduce lifetime of the settings local variable (#1309)
Diffstat (limited to 'applets/notification_area/na-grid.c')
-rw-r--r-- | applets/notification_area/na-grid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/notification_area/na-grid.c b/applets/notification_area/na-grid.c index 7f8162e8..b7690c3c 100644 --- a/applets/notification_area/na-grid.c +++ b/applets/notification_area/na-grid.c @@ -318,7 +318,7 @@ na_grid_realize (GtkWidget *widget) GdkScreen *screen; GtkOrientation orientation; NaHost *tray_host; - GSettings *settings = g_settings_new ("org.mate.panel"); + GSettings *settings; GTK_WIDGET_CLASS (na_grid_parent_class)->realize (widget); @@ -332,9 +332,9 @@ na_grid_realize (GtkWidget *widget) add_host (self, tray_host); + settings = g_settings_new ("org.mate.panel"); if (g_settings_get_boolean (settings, "enable-sni-support")) add_host (self, sn_host_v0_new ()); - g_object_unref (settings); } |