etrunko pushed a commit to branch master.
commit 4c3242ca621000c70e3c1c97642ce6d009da772b
Author: Eduardo Lima (Etrunko) <[email protected]>
Date: Wed May 15 16:28:58 2013 -0300
evas/wayland-egl: Don't crash when re->win is NULL
Signed-off-by: Eduardo Lima (Etrunko) <[email protected]>
---
src/modules/evas/engines/wayland_egl/evas_engine.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c
b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 0d9761a..0cd3ac6 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -544,6 +544,7 @@ static int
_re_wincheck(Render_Engine *re)
{
if (!re) return 0;
+ if (!re->win) return 0;
if (re->win->surf) return 1;
eng_window_resurf(re->win);
if (!re->win->surf)
@@ -761,7 +762,7 @@ eng_setup(Evas *eo_e, void *in)
if ((re->win) && (inc))
re->win->gl_context->references--;
}
- }
+ }
else if ((re->win->w != e->output.w) ||
(re->win->h != e->output.h))
{
--
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d