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:
Vincent Torri 2009-02-15 11:14:12 +00:00
parent c2f8ca5ccd
commit 860fc287c2
1 changed files with 2 additions and 0 deletions

View File

@ -221,6 +221,7 @@ evas_software_xcb_x_output_buffer_free(Xcb_Output_Buffer *xcbob,
xcb_get_input_focus_unchecked(xcbob->connection),
NULL));
xcb_shm_detach(xcbob->connection, xcbob->shm_info->shmseg);
free(xcbob->image->data);
xcb_image_destroy(xcbob->image);
shmdt(xcbob->shm_info->shmaddr);
shmctl(xcbob->shm_info->shmid, IPC_RMID, 0);
@ -229,6 +230,7 @@ evas_software_xcb_x_output_buffer_free(Xcb_Output_Buffer *xcbob,
else
{
if (xcbob->data) xcbob->image->data = NULL;
free(xcbob->image->data);
xcb_image_destroy(xcbob->image);
}
free(xcbob);