mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +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:
parent
40cccb58a5
commit
33bfcf56ce
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user