summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_x')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_image.c2
1 files changed, 2 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 97606f50b1..67b7142ff0 100644
--- a/src/lib/ecore_x/xlib/ecore_x_image.c
+++ b/src/lib/ecore_x/xlib/ecore_x_image.c
@@ -176,6 +176,7 @@ _ecore_x_image_shm_create(Ecore_X_Image *im)
176 if (im->shminfo.shmid == -1) 176 if (im->shminfo.shmid == -1)
177 { 177 {
178 XDestroyImage(im->xim); 178 XDestroyImage(im->xim);
179 im->xim = NULL;
179 return; 180 return;
180 } 181 }
181 182
@@ -188,6 +189,7 @@ _ecore_x_image_shm_create(Ecore_X_Image *im)
188 shmdt(im->shminfo.shmaddr); 189 shmdt(im->shminfo.shmaddr);
189 shmctl(im->shminfo.shmid, IPC_RMID, 0); 190 shmctl(im->shminfo.shmid, IPC_RMID, 0);
190 XDestroyImage(im->xim); 191 XDestroyImage(im->xim);
192 im->xim = NULL;
191 return; 193 return;
192 } 194 }
193 195