[mutter] xwayland: free lockfile in start function on error
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] xwayland: free lockfile in start function on error
- Date: Thu, 23 Apr 2015 17:51:28 +0000 (UTC)
commit 33bfcf56cef8b78fc87c66805e08b73b1028a451
Author: Ray Strode <rstrode redhat com>
Date: Thu Apr 23 10:29:30 2015 -0400
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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
index 1f98445..aec1519 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]