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 e57782ece8b8c556c96fabc66af47d009c0f67cd
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Nov 10 21:19:26 2026 -0600

    elementary: collection view fetches both parts of a split request
    
    When a request overflows an in-flight one on both sides, the right part
    is appended to the list being flushed. The loop is a FOREACH_SAFE whose
    next node was taken before: when the request was the last one, the
    appended part was never visited, so it was never fetched, and
    eina_list_free() at the end let go of its node but not of the request
    itself. valgrind showed it as a definite loss from _batch_request_flush
    at teardown (24 bytes each). The next node is now the appended one in
    that case.
    
    No check test: the split needs a fetch in flight that a request
    straddles, which the views do not let a test arrange; the loss is gone
    from valgrind's report of the collection_view case (jump test: scroll
    from far to far).
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/elementary/efl_ui_collection_view.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elementary/efl_ui_collection_view.c b/src/lib/elementary/efl_ui_collection_view.c
index 32b1553ca9..0198654c36 100644
--- a/src/lib/elementary/efl_ui_collection_view.c
+++ b/src/lib/elementary/efl_ui_collection_view.c
@@ -962,6 +962,9 @@ _batch_request_flush(Eina_List *requests,
                   rn->need_size = request->need_size;
 
                   requests = eina_list_append(requests, rn);
+                  // Appended after next_list_item was taken: when this was the last
+                  // request, go on with the new one.
+                  if (!next_list_item) next_list_item = eina_list_last(requests);
 
                   request->length = istart - rstart;
                   continue;

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

Reply via email to