wayland: Plug leak
The remote DBus error is leaked. https://bugzilla.gnome.org/show_bug.cgi?id=789984
This commit is contained in:
parent
c86c5d6905
commit
180985018b
1 changed files with 5 additions and 1 deletions
|
@ -277,9 +277,13 @@ set_gnome_env (const char *name,
|
||||||
-1, NULL, &error);
|
-1, NULL, &error);
|
||||||
if (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);
|
meta_warning ("Failed to set environment variable %s for gnome-session: %s\n", name, error->message);
|
||||||
|
|
||||||
|
g_free (remote_error);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue