summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-04-29 11:30:44 +0100
committerChris Michael <cp.michael@samsung.com>2013-04-29 11:32:18 +0100
commitb8c6d197480fb10a520c6bc7a05fd2abcbfcca64 (patch)
tree336b279e8dc344c18c1f88403cfbe3872807ca1e /src
parent672a2e36e3180f31a4f9e0e4c8d0061619244a7f (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_swapper.c2
1 files changed, 1 insertions, 1 deletions
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)
421 wb->buffer = NULL; 421 wb->buffer = NULL;
422 422
423 /* unmap the buffer data */ 423 /* unmap the buffer data */
424 if (wb->data) munmap(wb->data, wb->size); 424 /* if (wb->data) munmap(wb->data, wb->size); */
425 wb->data = NULL; 425 wb->data = NULL;
426} 426}
427 427