ecore-evas-wayland: Add warning if we fail to set engine info

Coverity reports an error handling issue here as we are not checking
the return value of evas_engine_info_set, so check that return and
issue a warning if it fails.

Fixes Coverity CID1365651

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-11-08 11:13:07 -05:00
parent 781a5089e5
commit b7406df4cf
1 changed files with 2 additions and 1 deletions

View File

@ -1922,7 +1922,8 @@ _ee_egl_display_unset(Ecore_Evas *ee)
einfo->info.wl_display = NULL;
wdata = ee->engine.data;
wdata->regen_objs = _evas_canvas_image_data_unset(ecore_evas_get(ee));
evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo);
if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
WRN("Failed to set Evas Engine Info for '%s'", ee->driver);
}
static Eina_Bool