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

git pushed a commit to branch dev/dimmus/gcc-15
in repository efl.

View the commit online.

commit 3b3b5d1eb01841c12f5a1556c5dae259fd82c948
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Sun Apr 13 22:13:56 2025 +0100

    eina - freeq - shortcut to instant free if max count/mem is 0
    
    saves overhead in freeq
---
 src/lib/eina/eina_freeq.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lib/eina/eina_freeq.c b/src/lib/eina/eina_freeq.c
index a4c07c9f9d..303a0b357d 100644
--- a/src/lib/eina/eina_freeq.c
+++ b/src/lib/eina/eina_freeq.c
@@ -574,6 +574,14 @@ eina_freeq_ptr_add(Eina_FreeQ *fq,
 
    if (!ptr) return;
    if (!free_func) free_func = free;
+
+   if (((fq->count_max <= 0) || (fq->mem_max <= 0)) &&
+       (!fq->postponed))
+     {
+        free_func(ptr);
+        return;
+     }
+
    if ((((fq) && !fq->postponed) || (!fq)) &&
        (size < _eina_freeq_fillpat_max) && (size > 0))
      _eina_freeq_fill_do(ptr, size);

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

Reply via email to