summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2018-02-05 22:19:44 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2018-02-05 22:19:44 +0900
commit1accec4ce1d75087222219f5e8a50909860a2089 (patch)
treec31b73001c3828573b7a277599b428ed397faf36
parentbb5f4aa857e5fbc1cb067317e690fcc5aae40a24 (diff)
evas: add null checks to handle when e->engine.func is not set yet
-rw-r--r--src/lib/evas/canvas/evas_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 7498916611..472dc03cdb 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -411,10 +411,12 @@ next_zombie:
411 } 411 }
412 412
413 /* Ector surface may require an existing output to finish its job */ 413 /* Ector surface may require an existing output to finish its job */
414 e->engine.func->ector_destroy(_evas_engine_context(e), e->ector); 414 if (e->engine.func)
415 e->engine.func->ector_destroy(_evas_engine_context(e), e->ector);
415 /* cleanup engine backend */ 416 /* cleanup engine backend */
416 EINA_LIST_FREE(e->outputs, evo) efl_canvas_output_del(evo); 417 EINA_LIST_FREE(e->outputs, evo) efl_canvas_output_del(evo);
417 e->engine.func->engine_free(e->backend); 418 if (e->engine.func)
419 e->engine.func->engine_free(e->backend);
418 420
419 for (i = 0; i < e->modifiers.mod.count; i++) 421 for (i = 0; i < e->modifiers.mod.count; i++)
420 free(e->modifiers.mod.list[i]); 422 free(e->modifiers.mod.list[i]);