Free pixel data after taking a wayland screen shot

This commit is contained in:
Derek Foreman 2016-03-10 18:17:19 -06:00 committed by Mike Blumenkrantz
parent f56bbf6e1a
commit f6c71b781d
1 changed files with 1 additions and 0 deletions

View File

@ -2170,6 +2170,7 @@ _e_comp_wl_screenshooter_cb_shoot(struct wl_client *client EINA_UNUSED, struct w
wl_shm_buffer_begin_access(shm_buffer);
memcpy(d, pixels, buffer->h * stride);
wl_shm_buffer_end_access(shm_buffer);
free(pixels);
screenshooter_send_done(resource);
}