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.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-04-27 09:10:43 -04:00 committed by Derek Foreman
parent 03cb02fa74
commit 2ba64a4c0a
1 changed files with 8 additions and 0 deletions

View File

@ -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);