When we free the swap buffer, do Not munmap the buffer data.
authorChris Michael <cp.michael@samsung.com>
Mon, 29 Apr 2013 10:30:44 +0000 (11:30 +0100)
committerChris Michael <cp.michael@samsung.com>
Mon, 29 Apr 2013 10:32:18 +0000 (11:32 +0100)
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>
src/modules/evas/engines/wayland_shm/evas_swapper.c

index 482183f..cc66917 100644 (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;
 }