antognolli pushed a commit to branch ecore-1.7.
commit 0dd0a62088c488ac93542c03d72c65494a93714e
Author: Rafael Antognolli <[email protected]>
Date: Tue Aug 13 15:49:53 2013 -0300
ecore_evas/wayland_egl: Add safety check on surface.
Must check if there's a surface before adding a new frame callback.
Should fix https://phab.enlightenment.org/T275.
---
src/lib/ecore_evas/ecore_evas_wayland_egl.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/lib/ecore_evas/ecore_evas_wayland_egl.c
b/src/lib/ecore_evas/ecore_evas_wayland_egl.c
index 36695d5..7614341 100644
--- a/src/lib/ecore_evas/ecore_evas_wayland_egl.c
+++ b/src/lib/ecore_evas/ecore_evas_wayland_egl.c
@@ -845,11 +845,13 @@ _ecore_evas_wl_frame_complete(void *data, struct
wl_callback *callback, uint32_t
win->frame_pending = EINA_FALSE;
wl_callback_destroy(callback);
- win->frame_callback =
- wl_surface_frame(win->surface);
-
- wl_callback_add_listener(win->frame_callback,
- &frame_listener, ee);
+ if (win->surface)
+ {
+ win->frame_callback =
+ wl_surface_frame(win->surface);
+ wl_callback_add_listener(win->frame_callback,
+ &frame_listener, ee);
+ }
}
static int
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk