aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Tinkl <lukas.tinkl@canonical.com>2016-03-08 15:26:24 +0100
committerRobert Tari <robert@tari.in>2021-06-22 22:56:43 +0200
commitb5ac3ae688550cc04a4a5bcea164b2038431f871 (patch)
tree46793a14fee0c0122b025e306a0bd197941988b1
parented386e9d7a51375f09063302a3b1e73103ea86c1 (diff)
downloadayatana-indicator-session-b5ac3ae688550cc04a4a5bcea164b2038431f871.tar.gz
ayatana-indicator-session-b5ac3ae688550cc04a4a5bcea164b2038431f871.tar.bz2
ayatana-indicator-session-b5ac3ae688550cc04a4a5bcea164b2038431f871.zip
plug a memleak
-rw-r--r--src/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 30226c9..3fca33b 100644
--- a/src/service.c
+++ b/src/service.c
@@ -105,6 +105,7 @@ struct _IndicatorSessionServicePrivate
GSimpleAction * header_action;
GSimpleAction * user_switcher_action;
GSimpleAction * guest_switcher_action;
+ GSimpleAction * usage_mode_action;
GHashTable * users;
GHashTable * reported_users;
guint rebuild_id;
@@ -1021,6 +1022,7 @@ init_gactions (IndicatorSessionService * self)
g_action_map_add_action(G_ACTION_MAP(p->actions), G_ACTION(a));
g_signal_connect_swapped(p->usage_mode_settings, "changed::usage-mode",
G_CALLBACK(on_usage_mode_setting_changed), self);
+ p->usage_mode_action = a;
/* add the header action */
a = g_simple_action_new_stateful ("_header", NULL,
@@ -1435,6 +1437,7 @@ my_dispose (GObject * o)
g_clear_object (&p->header_action);
g_clear_object (&p->user_switcher_action);
g_clear_object (&p->guest_switcher_action);
+ g_clear_object (&p->usage_mode_action);
g_clear_object (&p->conn);
g_clear_pointer (&p->default_icon_serialized, g_variant_unref);