mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 09:18:08 +02:00
Fix a crash on exit on macOS
Calling Python API functions is not allowed in atexit handlers. Fixes #3686
This commit is contained in:
@@ -178,6 +178,9 @@ class AppRunner:
|
||||
finally:
|
||||
set_options(None)
|
||||
free_font_data() # must free font data before glfw/freetype/fontconfig/opengl etc are finalized
|
||||
if is_macos:
|
||||
from kitty.fast_data_types import set_notification_activated_callback
|
||||
set_notification_activated_callback(None)
|
||||
|
||||
|
||||
run_app = AppRunner()
|
||||
|
||||
Reference in New Issue
Block a user