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 6981a03f2333849d4037c6d2aafccbce1788b97c
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Mar 17 17:50:07 2026 -0600

    ecore_cocoa: fix shutdown order and guard feed_events after shutdown
    
    Move eina_log_domain_unregister to after ecore_shutdown so that log
    calls during shutdown do not hit an unregistered domain. Also guard
    _ecore_cocoa_feed_events against being called after the module has
    been shut down, preventing unknown log domain errors.
    
    Made-with: Cursor
---
 src/lib/ecore_cocoa/ecore_cocoa.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index 8692b4e34c..35daac6179 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -89,9 +89,9 @@ ecore_cocoa_shutdown(void)
                           ECORE_COCOA_EVENT_WINDOW_RESIZE_REQUEST,
                           ECORE_COCOA_EVENT_WINDOW_DESTROY);
 
-   eina_log_domain_unregister(_ecore_cocoa_log_domain);
    ecore_event_shutdown();
    ecore_shutdown();
+   eina_log_domain_unregister(_ecore_cocoa_log_domain);
 
    return _ecore_cocoa_init_count;
 }
@@ -195,6 +195,7 @@ Eina_Bool
 _ecore_cocoa_feed_events(void *anEvent)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(anEvent, EINA_FALSE);
+   if (EINA_UNLIKELY(_ecore_cocoa_init_count <= 0)) return EINA_FALSE;
 
    NSEvent *event = anEvent;
    unsigned int time = (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff);

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

Reply via email to