From 33bfcf56cef8b78fc87c66805e08b73b1028a451 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 23 Apr 2015 10:29:30 -0400 Subject: [PATCH] xwayland: free lockfile in start function on error Right now we just leak the lockfile. https://bugzilla.gnome.org/show_bug.cgi?id=748380 --- src/wayland/meta-xwayland.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index 1f98445bf..aec151992 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; }