Ecore_X_Image: Add trap for potential missing XImage.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 17 Feb 2011 18:38:56 +0000 (18:38 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 17 Feb 2011 18:38:56 +0000 (18:38 +0000)
commit27fe92027ec3e9e4c6430b047f7e4c32c2422036
treeaabd50b243719dc9eed6fe05c0befafbb953a9d7
parentc600ae34a70368579a4905f7b7323e46f74cdcd2
Ecore_X_Image: Add trap for potential missing XImage.
  if Ecore_X_Image-->XImage does not exist, we call
_ecore_x_image_shm_create to create it via shm, BUT that function
can return a NULL XImage if shm is not supported, so we need to check
the return of that, else we are calling XShmPutImage with no XImage.

(NB: This should probably be backported to 1.0...if someone could
handle that please ?)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@57130 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore_x/xlib/ecore_x_image.c