This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit ce32d3a930aba8001a8bafd81dd846ebed361f13
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 8 15:50:32 2026 -0600

    elementary: a grid position manager frees its caches when it goes
    
    The grid manager keeps its group cache (an Eina_Inarray) and its size
    cache in the object data and nothing freed them: valgrind reported the
    inarray of every grid manager that was deleted (the data access set to
    NULL on the way out even rebuilds it once more). Free both on
    invalidate, once nothing reads them, and mark them dirty so that a late
    call rebuilds them rather than finding NULL.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/elementary/efl_ui_position_manager_grid.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lib/elementary/efl_ui_position_manager_grid.c b/src/lib/elementary/efl_ui_position_manager_grid.c
index 09a9585d60..70d1ab4039 100644
--- a/src/lib/elementary/efl_ui_position_manager_grid.c
+++ b/src/lib/elementary/efl_ui_position_manager_grid.c
@@ -869,6 +869,14 @@ _efl_ui_position_manager_grid_efl_object_invalidate(Eo *obj,
 {
    efl_ui_position_manager_data_access_v1_data_access_set(obj, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0);
 
+   // (nothing reads the caches once the data is gone, and nothing else frees them)
+   eina_inarray_free(pd->group_cache);
+   pd->group_cache = NULL;
+   free(pd->size_cache);
+   pd->size_cache = NULL;
+   pd->group_cache_dirty = EINA_TRUE;
+   pd->size_cache_dirty = EINA_TRUE;
+
    efl_invalidate(efl_super(obj, EFL_UI_POSITION_MANAGER_GRID_CLASS));
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to