devilhorns pushed a commit to branch master.
commit b8c6d197480fb10a520c6bc7a05fd2abcbfcca64
Author: Chris Michael <[email protected]>
Date: Mon Apr 29 11:30:44 2013 +0100
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 <[email protected]>
---
src/modules/evas/engines/wayland_shm/evas_swapper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr