ecore_x : fix dangling pointer problem related with shmget fail
This commit is contained in:
parent
bc78f49d71
commit
004d519f06
|
@ -1,3 +1,7 @@
|
||||||
|
2013-03-05 Jiyoun Park (Jypar)
|
||||||
|
|
||||||
|
* Ecore_x: Fix dangling pointer problem related with shmget fail
|
||||||
|
|
||||||
2013-03-04 Sung W. Park (sung_)
|
2013-03-04 Sung W. Park (sung_)
|
||||||
|
|
||||||
* Evas Evas_GL: removed resource surface/context pool in favor of
|
* Evas Evas_GL: removed resource surface/context pool in favor of
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -185,3 +185,4 @@ Fixes:
|
||||||
* Evas cache: remove the freed worker from the pthread worker list when it's failed to create a new thread so as not to access it if a thread is working newly.
|
* Evas cache: remove the freed worker from the pthread worker list when it's failed to create a new thread so as not to access it if a thread is working newly.
|
||||||
* fix custom states for edje SPACER parts
|
* fix custom states for edje SPACER parts
|
||||||
* fix edje program filters
|
* fix edje program filters
|
||||||
|
* fix dangling pointer problem related with shmget fail
|
||||||
|
|
|
@ -176,6 +176,7 @@ _ecore_x_image_shm_create(Ecore_X_Image *im)
|
||||||
if (im->shminfo.shmid == -1)
|
if (im->shminfo.shmid == -1)
|
||||||
{
|
{
|
||||||
XDestroyImage(im->xim);
|
XDestroyImage(im->xim);
|
||||||
|
im->xim = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,6 +189,7 @@ _ecore_x_image_shm_create(Ecore_X_Image *im)
|
||||||
shmdt(im->shminfo.shmaddr);
|
shmdt(im->shminfo.shmaddr);
|
||||||
shmctl(im->shminfo.shmid, IPC_RMID, 0);
|
shmctl(im->shminfo.shmid, IPC_RMID, 0);
|
||||||
XDestroyImage(im->xim);
|
XDestroyImage(im->xim);
|
||||||
|
im->xim = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue