From: Chris Michael Date: Mon, 29 Apr 2013 10:30:44 +0000 (+0100) Subject: When we free the swap buffer, do Not munmap the buffer data. X-Git-Tag: submit/devel/efl/20131022.203902~1143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8c6d197480fb10a520c6bc7a05fd2abcbfcca64;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/modules/evas/engines/wayland_shm/evas_swapper.c b/src/modules/evas/engines/wayland_shm/evas_swapper.c index 482183f..cc66917 100644 --- a/src/modules/evas/engines/wayland_shm/evas_swapper.c +++ b/src/modules/evas/engines/wayland_shm/evas_swapper.c @@ -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; }