Commit 28375c83 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Wayland/SHM: fix memory leak

parent 7609918f
......@@ -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)
......
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