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

git pushed a commit to branch reproducible-widget-previews
in repository efl.

View the commit online.

commit 8f49ff4835086b6e9fd9868f6a87b6e34f169161
Author: Carsten Haitzler <[email protected]>
AuthorDate: Wed Apr 15 11:41:51 2026 +0100

    ecore - ensure eo obj is valid if a hd handler r/w/err cb deletes itself
    
    ref+unref to ensure this
    
    @fix
---
 src/lib/ecore/efl_loop_fd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/ecore/efl_loop_fd.c b/src/lib/ecore/efl_loop_fd.c
index ab4e184dac..7812737dfc 100644
--- a/src/lib/ecore/efl_loop_fd.c
+++ b/src/lib/ecore/efl_loop_fd.c
@@ -29,6 +29,7 @@ _efl_loop_fd_read_cb(void *data, Ecore_Fd_Handler *fd_handler)
 {
    Eo *obj = data;
 
+   efl_ref(obj);
    if (ecore_main_fd_handler_active_get(fd_handler, ECORE_FD_READ))
      {
         efl_event_callback_call(obj, EFL_LOOP_FD_EVENT_READ, NULL);
@@ -41,6 +42,7 @@ _efl_loop_fd_read_cb(void *data, Ecore_Fd_Handler *fd_handler)
      {
         efl_event_callback_call(obj, EFL_LOOP_FD_EVENT_ERROR, NULL);
      }
+   efl_unref(obj);
 
    return ECORE_CALLBACK_RENEW;
 }

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

Reply via email to