summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-05-09 10:18:29 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-05-09 10:42:05 -0400
commit8788cac2872a110f07bc951c9d305a8e900b6bff (patch)
treeaf6abd19504da285e8bb73ca89f191751a1af08e
parentf16bda07b930ab9c26b4d885c944c4ee0d839171 (diff)
...also when shmat() fails
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_image.c b/src/lib/ecore_x/xlib/ecore_x_image.c
index d77c87210c..9b629b565e 100644
--- a/src/lib/ecore_x/xlib/ecore_x_image.c
+++ b/src/lib/ecore_x/xlib/ecore_x_image.c
@@ -260,6 +260,7 @@ _ecore_x_image_shm_create(Ecore_X_Image *im)
260 if ((im->xim->data == (char *)-1) || 260 if ((im->xim->data == (char *)-1) ||
261 (!im->xim->data)) 261 (!im->xim->data))
262 { 262 {
263 ERR("shmat failed: %s", strerror(errno));
263 shmdt(im->shminfo.shmaddr); 264 shmdt(im->shminfo.shmaddr);
264 shmctl(im->shminfo.shmid, IPC_RMID, 0); 265 shmctl(im->shminfo.shmid, IPC_RMID, 0);
265 XDestroyImage(im->xim); 266 XDestroyImage(im->xim);