[vlc-commits] Wayland/SHM: fix memory leak

Rémi Denis-Courmont git at videolan.org
Thu Oct 30 18:28:11 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 30 18:54:34 2014 +0200| [28375c8354989b6b6a400bb614a6d584c8bbf8e6] | committer: Rémi Denis-Courmont

Wayland/SHM: fix memory leak

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

 modules/video_output/wayland/shm.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/wayland/shm.c b/modules/video_output/wayland/shm.c
index f89166d..b75edab 100644
--- a/modules/video_output/wayland/shm.c
+++ b/modules/video_output/wayland/shm.c
@@ -67,6 +67,7 @@ static void PictureDestroy(picture_t *pic)
 
     munmap(pic->p[0].p_pixels, (picsize + pagemask) & ~pagemask);
     wl_buffer_destroy(buf); /* XXX: what if wl_display is already gone? */
+    free(pic);
 }
 
 static void buffer_release_cb(void *data, struct wl_buffer *buffer)



More information about the vlc-commits mailing list