Commit 2e87a9ae authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: memory leak with --no-x11-shm

parent 10865b25
...@@ -448,10 +448,8 @@ static void PictureDeinit (picture_t *pic) ...@@ -448,10 +448,8 @@ static void PictureDeinit (picture_t *pic)
struct picture_sys_t *p_sys = pic->p_sys; struct picture_sys_t *p_sys = pic->p_sys;
if (p_sys->segment != 0) if (p_sys->segment != 0)
{
xcb_shm_detach (p_sys->conn, p_sys->segment); xcb_shm_detach (p_sys->conn, p_sys->segment);
shmdt (pic->p->p_pixels); shmdt (pic->p->p_pixels);
}
free (p_sys); free (p_sys);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment