devilhorns pushed a commit to branch master.

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

commit bab8379248e756afb6c038c22f8c9c15c886059e
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Oct 22 09:13:44 2014 -0400

    ecore-drm: Check for valid crtc before calling free
    
    Summary: We cannot call drmModeFreeCrtc with an invalid crtc, so check
    that it is set inside the output structure before trying to make this
    call
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm/ecore_drm_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index af635b5..6e139f4 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -571,7 +571,7 @@ _ecore_drm_output_free(Ecore_Drm_Output *output)
    if (output->model) eina_stringshare_del(output->model);
    if (output->make) eina_stringshare_del(output->make);
 
-   drmModeFreeCrtc(output->crtc);
+   if (output->crtc) drmModeFreeCrtc(output->crtc);
 
    free(output);
 }

-- 


Reply via email to