XCB: memory leak with --no-x11-shm
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 20 Apr 2009 07:17:41 +0000 (10:17 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 20 Apr 2009 07:17:41 +0000 (10:17 +0300)
modules/video_output/xcb/x11.c

index 5065571..9edcbb3 100644 (file)
@@ -448,10 +448,8 @@ static void PictureDeinit (picture_t *pic)
     struct picture_sys_t *p_sys = pic->p_sys;
 
     if (p_sys->segment != 0)
-    {
         xcb_shm_detach (p_sys->conn, p_sys->segment);
-        shmdt (pic->p->p_pixels);
-    }
+    shmdt (pic->p->p_pixels);
     free (p_sys);
 }