forked from enlightenment/efl
free correctly each buffer in XCB engine
The xcb_image dependency should be removed and replaced by direct calls of the request XPutImage SVN revision: 39024
This commit is contained in:
parent
c2f8ca5ccd
commit
860fc287c2
|
@ -221,6 +221,7 @@ evas_software_xcb_x_output_buffer_free(Xcb_Output_Buffer *xcbob,
|
||||||
xcb_get_input_focus_unchecked(xcbob->connection),
|
xcb_get_input_focus_unchecked(xcbob->connection),
|
||||||
NULL));
|
NULL));
|
||||||
xcb_shm_detach(xcbob->connection, xcbob->shm_info->shmseg);
|
xcb_shm_detach(xcbob->connection, xcbob->shm_info->shmseg);
|
||||||
|
free(xcbob->image->data);
|
||||||
xcb_image_destroy(xcbob->image);
|
xcb_image_destroy(xcbob->image);
|
||||||
shmdt(xcbob->shm_info->shmaddr);
|
shmdt(xcbob->shm_info->shmaddr);
|
||||||
shmctl(xcbob->shm_info->shmid, IPC_RMID, 0);
|
shmctl(xcbob->shm_info->shmid, IPC_RMID, 0);
|
||||||
|
@ -229,6 +230,7 @@ evas_software_xcb_x_output_buffer_free(Xcb_Output_Buffer *xcbob,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (xcbob->data) xcbob->image->data = NULL;
|
if (xcbob->data) xcbob->image->data = NULL;
|
||||||
|
free(xcbob->image->data);
|
||||||
xcb_image_destroy(xcbob->image);
|
xcb_image_destroy(xcbob->image);
|
||||||
}
|
}
|
||||||
free(xcbob);
|
free(xcbob);
|
||||||
|
|
Loading…
Reference in New Issue