Xephyr: Avoid calling xcb_shm_detach() twice

This call was forgotten to be removed in
90996f5909 in which
hostx_destroy_shm_segment() was introduced, which
itself does it.

Signed-off-by: Alexander Volkov <a.volkov@rusbitech.ru>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Alexander Volkov 2018-02-20 18:07:18 +03:00 committed by Adam Jackson
parent 5ba0ba93e1
commit 343ee7d075

View File

@ -891,7 +891,6 @@ hostx_screen_init(KdScreenInfo *screen,
*/
if (HostX.have_shm) {
xcb_shm_detach(HostX.conn, scrpriv->shminfo.shmseg);
xcb_image_destroy(scrpriv->ximg);
hostx_destroy_shm_segment(&scrpriv->shminfo, scrpriv->shmsize);
}