This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/devilhorns/apos
in repository efl.
View the commit online.
commit 8f3d9c603ff766d270721d1255eb53f6e1125bac
Author: Christopher Michael <[email protected]>
AuthorDate: Tue Aug 19 08:22:01 2025 -0500
ecore_drm2: Free created plane state formats when we destroy planes
---
src/lib/ecore_drm2/ecore_drm2_planes.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/lib/ecore_drm2/ecore_drm2_planes.c b/src/lib/ecore_drm2/ecore_drm2_planes.c
index 3daa7e94cd..fffc3f2127 100644
--- a/src/lib/ecore_drm2/ecore_drm2_planes.c
+++ b/src/lib/ecore_drm2/ecore_drm2_planes.c
@@ -73,6 +73,15 @@ _ecore_drm2_plane_state_formats_add(Ecore_Drm2_Plane_State *pstate, drmModePrope
return EINA_TRUE;
}
+static void
+_ecore_drm2_plane_state_formats_del(Ecore_Drm2_Plane_State *pstate)
+{
+ Ecore_Drm2_Format *fmt;
+
+ EINA_LIST_FREE(pstate->formats, fmt)
+ free(fmt);
+}
+
static void
_ecore_drm2_plane_state_fill(Ecore_Drm2_Plane *plane)
{
@@ -406,8 +415,13 @@ _ecore_drm2_planes_destroy(Ecore_Drm2_Device *dev)
if (plane->thread) ecore_thread_cancel(plane->thread);
if (plane->drmPlane) sym_drmModeFreePlane(plane->drmPlane);
+
+ _ecore_drm2_plane_state_formats_del(plane->state.pending);
free(plane->state.pending);
+
+ _ecore_drm2_plane_state_formats_del(plane->state.current);
free(plane->state.current);
+
free(plane);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.