When we free the swap buffer, do Not munmap the buffer data.

Buffer data (in this instance) is from the swapper (ie: the creation
of the swapper allocates & mmaps the data). As such, we should not
unmap it when we free buffer(s), just when we free the swapper.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-04-29 11:30:44 +01:00
parent 672a2e36e3
commit b8c6d19748
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ _evas_swapper_buffer_free(Wl_Buffer *wb)
wb->buffer = NULL;
/* unmap the buffer data */
if (wb->data) munmap(wb->data, wb->size);
/* if (wb->data) munmap(wb->data, wb->size); */
wb->data = NULL;
}