do not access NULL image data for native surfaces.

This fixes another segv that happens when using composite manager.


SVN revision: 46265
This commit is contained in:
Gustavo Sverzut Barbieri 2010-02-18 02:51:27 +00:00
parent 1ad4337878
commit 5777eee064
1 changed files with 1 additions and 1 deletions

View File

@ -1249,6 +1249,7 @@ eng_image_native_set(void *data, void *image, void *native)
Visual *vis = NULL;
Pixmap pm = 0;
if (!im) return;
if (ns)
{
vis = ns->data.x11.visual;
@ -1263,7 +1264,6 @@ eng_image_native_set(void *data, void *image, void *native)
}
}
if ((!ns) && (!im->native.data)) return;
if (!im) return;
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
if (im->native.data)
{