mpv/osdep/mac
der richter e42a8d537f mac/log: fix use after free when freeing mpv handle
the mp_log is freed when the corresponding mpv_handle (ta_parent) is
freed in the EventHelper, though it could still be used from different
threads. instead don't use a ta_parent and manually free on manual
dereferencing. on app shutdown (memory cleanup) this is not called but
instead is freed by the usual cleanup and freeing.

the LogHelper is only able to be manually dereferenced in the AppHub,
so no race conditions are possible in all other cases (vo).in the AppHub
it's impossible to hit a race condition atm, because of how the init
process works and how/where the log is used. only manually forcing
logging in the exit process itself could theoretically trigger a use
after free.

Fixes #13823
2024-04-12 23:23:16 +02:00
..
app_bridge.h mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
app_bridge.m mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
app_bridge_objc.h
app_hub.swift mac/log: fix use after free when freeing mpv handle 2024-04-12 23:23:16 +02:00
application.swift mac/app: add some verbose logging for app startup and file handling 2024-04-01 22:13:39 +02:00
event_helper.swift
input_helper.swift mac/apphub: fix opening several files at once via Finder or App icon 2024-04-04 19:39:27 +02:00
libmpv_helper.swift
log_helper.swift mac/log: fix use after free when freeing mpv handle 2024-04-12 23:23:16 +02:00
menu_bar.swift mac/menu: remove redundant quit func and use identical command func 2024-04-01 22:13:39 +02:00
meson.build
option_helper.swift
precise_timer.swift
presentation.swift mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
remote_command_center.swift mac/remote: use event type as key state for proper mapping in function 2024-04-04 19:39:27 +02:00
swift_compat.swift
swift_extensions.swift
touch_bar.swift
type_helper.swift