[mutter/gnome-3-26] wayland: Plug leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-26] wayland: Plug leak
- Date: Tue, 7 Nov 2017 10:13:04 +0000 (UTC)
commit 0b10df1faadac9a5d19d9220cecda03c2eccc2eb
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Nov 6 20:37:34 2017 +0100
wayland: Plug leak
The remote DBus error is leaked.
https://bugzilla.gnome.org/show_bug.cgi?id=789984
src/wayland/meta-wayland.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 2c3dff2..799613c 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -277,9 +277,13 @@ set_gnome_env (const char *name,
-1, NULL, &error);
if (error)
{
- if (g_strcmp0 (g_dbus_error_get_remote_error (error), "org.gnome.SessionManager.NotInInitialization")
!= 0)
+ char *remote_error;
+
+ remote_error = g_dbus_error_get_remote_error (error);
+ if (g_strcmp0 (remote_error, "org.gnome.SessionManager.NotInInitialization") != 0)
meta_warning ("Failed to set environment variable %s for gnome-session: %s\n", name, error->message);
+ g_free (remote_error);
g_error_free (error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]