[gnome-session] manager: Fix a couple of minor leaks
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] manager: Fix a couple of minor leaks
- Date: Fri, 10 Dec 2021 14:53:57 +0000 (UTC)
commit 59f265eea4ce1de7b0c61cd5f3491a3e448c125c
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Nov 15 21:36:59 2021 +0000
manager: Fix a couple of minor leaks
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gnome-session/gsm-manager.c | 3 +++
1 file changed, 3 insertions(+)
---
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]