derekf pushed a commit to branch master.

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

commit 2ba64a4c0a96689fb144b1fcb05c93c140279755
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Apr 27 09:10:43 2017 -0400

    ecore-drm2: Free output atomic request on destruction
    
    When we free an output, make sure we cleanup any existing atomic
    commit requests
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm2/ecore_drm2_outputs.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c 
b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index c7e3b2b..27c0031 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -895,6 +895,14 @@ _output_destroy(Ecore_Drm2_Device *dev, Ecore_Drm2_Output 
*output)
    Ecore_Drm2_Plane *plane;
    Ecore_Drm2_Plane_State *pstate;
 
+#ifdef HAVE_ATOMIC_DRM
+   if (_ecore_drm2_use_atomic)
+     {
+        if (output->atomic_req)
+          sym_drmModeAtomicFree(output->atomic_req);
+     }
+#endif
+
    EINA_LIST_FREE(output->plane_states, pstate)
      free(pstate);
 

-- 


Reply via email to