Small patch to make sure we free memory previously allocated for
hardware planes when we destroy an output
Signed-off-by: Chris Michael <cp.michael@samsung.com>
#ifdef HAVE_ATOMIC_DRM
if (_ecore_drm2_use_atomic)
{
+ Ecore_Drm2_Plane *plane;
Ecore_Drm2_Plane_State *pstate;
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);
}
Ecore_Drm2_Fb *fb; // current fbo
Ecore_Drm2_Fb *qfb; // queued fbo
# ifdef HAVE_ATOMIC_DRM
- Ecore_Drm2_Plane_State *plane_state;
+ Ecore_Drm2_Plane_State *state;
# endif
};
Ecore_Drm2_Crtc_State *crtc_state;
Ecore_Drm2_Connector_State *conn_state;
Eina_List *plane_states;
+ Eina_List *planes;
# endif
Eina_Bool connected : 1;