mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
xwayland: plug some leaks in stop function
This commit makes sure the lockfile and display name are freed in meta_xwayland_stop. https://bugzilla.gnome.org/show_bug.cgi?id=748380
This commit is contained in:
parent
8937c32cd5
commit
eb56e0a3d7
@ -532,5 +532,10 @@ meta_xwayland_stop (MetaXWaylandManager *manager)
|
|||||||
snprintf (path, sizeof path, "/tmp/.X11-unix/X%d", manager->display_index);
|
snprintf (path, sizeof path, "/tmp/.X11-unix/X%d", manager->display_index);
|
||||||
unlink (path);
|
unlink (path);
|
||||||
|
|
||||||
|
g_clear_pointer (&manager->display_name, g_free);
|
||||||
|
if (manager->lock_file)
|
||||||
|
{
|
||||||
unlink (manager->lock_file);
|
unlink (manager->lock_file);
|
||||||
|
g_clear_pointer (&manager->lock_file, g_free);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user