summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-05-14 16:13:33 -0700
committerU. Artie Eoff <ullysses.a.eoff@intel.com>2014-05-14 16:13:33 -0700
commite186f6dbc5c5e6a2f71d2f22a81b57a2c2719d27 (patch)
tree7e440594c19bff4ec9cbc14cfe33ed3c9a1f9643
parent0782e96c36d1886c62852399baa93f18769acdf3 (diff)
downloadefl-e186f6dbc5c5e6a2f71d2f22a81b57a2c2719d27.tar.gz
evas/wayland_shm: unlink the REAL temporary file
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_swapper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_swapper.c b/src/modules/evas/engines/wayland_shm/evas_swapper.c
index 0f3904f4ac..cc274018a6 100644
--- a/src/modules/evas/engines/wayland_shm/evas_swapper.c
+++ b/src/modules/evas/engines/wayland_shm/evas_swapper.c
@@ -333,6 +333,8 @@ _evas_swapper_shm_pool_new(Wl_Swapper *ws)
return EINA_FALSE;
}
+ /* unlink the temp file */
+ unlink(name);
free(name);
/* try to truncate the tmp file to requested size */
@@ -346,9 +348,6 @@ _evas_swapper_shm_pool_new(Wl_Swapper *ws)
/* mem map the file */
ws->data = mmap(NULL, size, (PROT_READ | PROT_WRITE), MAP_SHARED, fd, 0);
- /* unlink the tmp file */
- unlink(tmp);
-
/* if we failed to mem map the file, return an error */
if (ws->data == MAP_FAILED)
{