ecore-drm2: Don't free output plane states if not using atomic

If atomic support is not enabled (kernel or env var), then we will not
be filling output plane_states, so no need to free them (if non-atomic).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-05-30 15:57:07 -04:00
parent f2a0e5ae4c
commit dc3da87139
1 changed files with 6 additions and 6 deletions

View File

@ -923,14 +923,14 @@ _output_destroy(Ecore_Drm2_Device *dev, Ecore_Drm2_Output *output)
}
#endif
EINA_LIST_FREE(output->plane_states, pstate)
free(pstate);
EINA_LIST_FREE(output->planes, plane)
free(plane);
if (_ecore_drm2_use_atomic)
{
EINA_LIST_FREE(output->plane_states, pstate)
free(pstate);
EINA_LIST_FREE(output->planes, plane)
free(plane);
free(output->conn_state);
free(output->crtc_state);
}