window: Plug leak of shm_surface_data on shm_suface_data_destroy()
This was causing a leak on every frame when using shm buffers.
This commit is contained in:
committed by
Kristian Høgsberg
parent
d553bfc127
commit
2a3cd287ef
@@ -422,6 +422,8 @@ shm_surface_data_destroy(void *p)
|
|||||||
wl_buffer_destroy(data->data.buffer);
|
wl_buffer_destroy(data->data.buffer);
|
||||||
if (data->pool)
|
if (data->pool)
|
||||||
shm_pool_destroy(data->pool);
|
shm_pool_destroy(data->pool);
|
||||||
|
|
||||||
|
free(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct wl_shm_pool *
|
static struct wl_shm_pool *
|
||||||
|
|||||||
Reference in New Issue
Block a user