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:
Ray Strode 2015-04-23 10:29:30 -04:00
parent 40cccb58a5
commit 33bfcf56ce

View File

@ -505,7 +505,10 @@ meta_xwayland_start (MetaXWaylandManager *manager,
out:
if (!started)
{
unlink (manager->lockfile);
g_clear_pointer (&manager->lockfile, g_free);
}
return started;
}