wayland_egl: Don't crash when asked to dump with no outbuf
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 3 Mar 2017 19:01:23 +0000 (13:01 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 3 Mar 2017 19:30:00 +0000 (13:30 -0600)
Another session recovery corner case.

src/modules/evas/engines/wayland_egl/evas_engine.c

index a01ca20..0413a6e 100644 (file)
@@ -777,13 +777,15 @@ eng_output_free(void *data)
 static void
 eng_output_dump(void *data)
 {
+   Outbuf *ob;
    Render_Engine *re;
 
    if (!(re = (Render_Engine *)data)) return;
 
    evas_common_image_image_all_unload();
    evas_common_font_font_all_unload();
-   glsym_evas_gl_common_image_all_unload(eng_get_ob(re)->gl_context);
+   ob = eng_get_ob(re);
+   if (ob) glsym_evas_gl_common_image_all_unload(ob->gl_context);
    _re_winfree(re);
 }