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

git pushed a commit to branch evas-software-generic-mempool-leak
in repository efl.

View the commit online.

commit 9aef4a1636ff58636ac5fa291262267eb71484aa
Author: Cedric BAIL <[email protected]>
AuthorDate: Wed Dec 2 15:23:13 2026 -0600

    evas/software_generic: delete every mempool the module creates
    
    module_open() adds nine mempools, module_close() deleted seven of
    them. The multi-font and ector surface pools were left behind, and as
    the engine module is opened again after every evas_shutdown() and
    evas_init() cycle, each cycle overwrote the pointers and lost the old
    pools together with their chunks.
    
    Seen by valgrind on five init, evas_render_method_lookup("buffer") and
    shutdown cycles, run on this tree with EFL_RUN_IN_TREE=1:
    
      before: definitely lost 1,240 bytes in 13 blocks, 1,028 indirectly
      after:  definitely lost   600 bytes in  5 blocks, none indirectly
    
    The 600 bytes left are the Eina_Module handles that
    evas_module_find_type() drops on purpose, as its comment says.
    
    No test: a pool that is not deleted cannot be told from the check
    framework, only from valgrind.
    
    Co-Authored-By: Claude Fable 5.2 <[email protected]>
---
 src/modules/evas/engines/software_generic/evas_engine.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index 580e75e40a..d1dccd1eeb 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -6024,7 +6024,9 @@ module_close(Evas_Module *em EINA_UNUSED)
    eina_mempool_del(_mp_command_image);
    eina_mempool_del(_mp_command_font);
    eina_mempool_del(_mp_command_map);
+   eina_mempool_del(_mp_command_multi_font);
    eina_mempool_del(_mp_command_ector);
+   eina_mempool_del(_mp_command_ector_surface);
    if (_evas_soft_gen_log_dom >= 0)
      {
         eina_log_domain_unregister(_evas_soft_gen_log_dom);

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

Reply via email to