discomfitor pushed a commit to branch master.

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

commit 2a7d4d62db481c50dea1717777f099e26886f22c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Nov 16 14:10:52 2015 -0500

    ecore-evas drm: null global device pointer after free
    
    ref T2844
    
    @fix
---
 src/modules/ecore_evas/engines/drm/ecore_evas_drm.c | 2 ++
 1 file changed, 2 insertions(+)

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 f7cfc55..a806cc0 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -575,6 +575,7 @@ sprite_err:
 dev_open_err:
    ecore_drm_launcher_disconnect(dev);
    ecore_drm_device_free(dev);
+   dev = NULL;
 launcher_err:
 dev_err:
    ecore_drm_shutdown();
@@ -592,6 +593,7 @@ _ecore_evas_drm_shutdown(void)
    ecore_drm_device_close(dev);
    ecore_drm_launcher_disconnect(dev);
    ecore_drm_device_free(dev);
+   dev = NULL;
    ecore_drm_shutdown();
 
    ecore_event_evas_shutdown();

-- 


Reply via email to