devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b53e125640fd59967ccdaa628b863f22fd90f1a6

commit b53e125640fd59967ccdaa628b863f22fd90f1a6
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Jan 22 12:44:44 2015 -0500

    ecore-evas-drm: Fix improper shutdown sequence
    
    Summary: As the launcher code now uses some fields from the
    Ecore_Drm_Device, we need to free the device After the launcher has
    been disconnected.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/ecore_evas/engines/drm/ecore_evas_drm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 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 40ec670..8ff1d39 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -526,8 +526,8 @@ input_err:
 sprite_err:
    ecore_drm_device_close(dev);
 dev_open_err:
-   ecore_drm_device_free(dev);
    ecore_drm_launcher_disconnect(dev);
+   ecore_drm_device_free(dev);
 launcher_err:
 dev_err:
    ecore_drm_shutdown();
@@ -543,8 +543,8 @@ _ecore_evas_drm_shutdown(void)
    /* NB: No need to free outputs here. Is done in device free */
    ecore_drm_sprites_destroy(dev);
    ecore_drm_device_close(dev);
-   ecore_drm_device_free(dev);
    ecore_drm_launcher_disconnect(dev);
+   ecore_drm_device_free(dev);
    ecore_drm_shutdown();
 
    ecore_event_evas_shutdown();

-- 


Reply via email to