ecore-evas-drm: Fix up error handling
Summary: Due to the change of order in creating outputs & inputs, we need an additional goto error for destroying inputs if output_create fails @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
61d03472a4
commit
68ede67850
|
@ -498,7 +498,7 @@ _ecore_evas_drm_init(const char *device)
|
|||
if (!ecore_drm_inputs_create(dev))
|
||||
{
|
||||
ERR("Could not create inputs: %m");
|
||||
goto output_err;
|
||||
goto input_err;
|
||||
}
|
||||
|
||||
/* try to create outputs */
|
||||
|
@ -513,6 +513,8 @@ _ecore_evas_drm_init(const char *device)
|
|||
return _ecore_evas_init_count;
|
||||
|
||||
output_err:
|
||||
ecore_drm_inputs_destroy(dev);
|
||||
input_err:
|
||||
ecore_drm_sprites_destroy(dev);
|
||||
sprite_err:
|
||||
ecore_drm_device_close(dev);
|
||||
|
|
Loading…
Reference in New Issue