summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-04-23 10:29:30 -0400
committerRay Strode <rstrode@redhat.com>2015-04-23 13:51:11 -0400
commit33bfcf56cef8b78fc87c66805e08b73b1028a451 (patch)
treec05ca263d1a8af5d7804cc07e65f4c542fe1b040
parent40cccb58a5084a970265fb55df9aad69dc81b39e (diff)
xwayland: free lockfile in start function on error
Right now we just leak the lockfile. https://bugzilla.gnome.org/show_bug.cgi?id=748380
-rw-r--r--src/wayland/meta-xwayland.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
index 1f98445b..aec15199 100644
--- a/src/wayland/meta-xwayland.c
+++ b/src/wayland/meta-xwayland.c
@@ -505,7 +505,10 @@ meta_xwayland_start (MetaXWaylandManager *manager,
out:
if (!started)
- unlink (manager->lockfile);
+ {
+ unlink (manager->lockfile);
+ g_clear_pointer (&manager->lockfile, g_free);
+ }
return started;
}