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:
parent
5ba0ba93e1
commit
343ee7d075
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user