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:
Ander Conselvan de Oliveira 2012-06-19 13:45:55 +03:00 committed by Kristian Høgsberg
parent d553bfc127
commit 2a3cd287ef
1 changed files with 2 additions and 0 deletions

View File

@ -422,6 +422,8 @@ shm_surface_data_destroy(void *p)
wl_buffer_destroy(data->data.buffer);
if (data->pool)
shm_pool_destroy(data->pool);
free(data);
}
static struct wl_shm_pool *