forked from enlightenment/efl
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:
parent
03cb02fa74
commit
2ba64a4c0a
|
@ -895,6 +895,14 @@ _output_destroy(Ecore_Drm2_Device *dev, Ecore_Drm2_Output *output)
|
||||||
Ecore_Drm2_Plane *plane;
|
Ecore_Drm2_Plane *plane;
|
||||||
Ecore_Drm2_Plane_State *pstate;
|
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)
|
EINA_LIST_FREE(output->plane_states, pstate)
|
||||||
free(pstate);
|
free(pstate);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue