summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2021-11-15 21:36:59 +0000
committerRay Strode <halfline@gmail.com>2021-12-10 14:53:40 +0000
commit59f265eea4ce1de7b0c61cd5f3491a3e448c125c (patch)
treed0301f4b19f5dbca7c47c73f2dedabcccce458ae
parent7083a6c103eb062ee9d26351272440763dfe7320 (diff)
downloadgnome-session-59f265eea4ce1de7b0c61cd5f3491a3e448c125c.tar.gz
manager: Fix a couple of minor leaks
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rw-r--r--gnome-session/gsm-manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 1bccec94..39e867c3 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -2401,6 +2401,7 @@ gsm_manager_dispose (GObject *object)
g_clear_object (&priv->end_session_cancellable);
g_clear_object (&priv->xsmp_server);
+ g_clear_pointer (&priv->session_name, g_free);
if (priv->clients != NULL) {
g_signal_handlers_disconnect_by_func (priv->clients,
@@ -2416,6 +2417,8 @@ gsm_manager_dispose (GObject *object)
g_clear_object (&priv->apps);
g_slist_free (priv->required_apps);
priv->required_apps = NULL;
+ g_slist_free (priv->pending_apps);
+ priv->pending_apps = NULL;
if (priv->inhibitors != NULL) {
g_signal_handlers_disconnect_by_func (priv->inhibitors,