mirror of
https://github.com/brl/mutter.git
synced 2025-07-28 04:29:23 +00:00
xwayland: free lockfile in start function on error
Right now we just leak the lockfile. https://bugzilla.gnome.org/show_bug.cgi?id=748380
This commit is contained in:
@@ -505,7 +505,10 @@ meta_xwayland_start (MetaXWaylandManager *manager,
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
if (!started)
|
if (!started)
|
||||||
|
{
|
||||||
unlink (manager->lockfile);
|
unlink (manager->lockfile);
|
||||||
|
g_clear_pointer (&manager->lockfile, g_free);
|
||||||
|
}
|
||||||
return started;
|
return started;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user