[vlc-devel] commit: XCB: memory leak with --no-x11-shm ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Apr 20 09:17:55 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 20 10:17:41 2009 +0300| [2e87a9ae93e5c97925dd09a73e92f77465701036] | committer: Rémi Denis-Courmont 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e87a9ae93e5c97925dd09a73e92f77465701036
---

 modules/video_output/xcb/x11.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/xcb/x11.c b/modules/video_output/xcb/x11.c
index 5065571..9edcbb3 100644
--- a/modules/video_output/xcb/x11.c
+++ b/modules/video_output/xcb/x11.c
@@ -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);
 }
 




More information about the vlc-devel mailing list