summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index f69d5b307a..b444d94051 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -498,7 +498,7 @@ _ecore_evas_drm_init(const char *device)
498 if (!ecore_drm_inputs_create(dev)) 498 if (!ecore_drm_inputs_create(dev))
499 { 499 {
500 ERR("Could not create inputs: %m"); 500 ERR("Could not create inputs: %m");
501 goto output_err; 501 goto input_err;
502 } 502 }
503 503
504 /* try to create outputs */ 504 /* try to create outputs */
@@ -513,6 +513,8 @@ _ecore_evas_drm_init(const char *device)
513 return _ecore_evas_init_count; 513 return _ecore_evas_init_count;
514 514
515output_err: 515output_err:
516 ecore_drm_inputs_destroy(dev);
517input_err:
516 ecore_drm_sprites_destroy(dev); 518 ecore_drm_sprites_destroy(dev);
517sprite_err: 519sprite_err:
518 ecore_drm_device_close(dev); 520 ecore_drm_device_close(dev);