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 mac/app: rewrite App c main function, startup and termination in swift 2024-04-01 22:13:39 +02:00
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 mac: cleanup swift bridge header imports and unify them 2024-03-29 14:20:40 +01:00
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 mac/log: rename log functions and cleanup class 2024-03-29 14:20:40 +01:00
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 mac: cleanup swift bridge header imports and unify them 2024-03-29 14:20:40 +01:00
option_helper.swift mac: remove now unnecessary objective-c forwarding 2024-03-29 14:20:40 +01:00
precise_timer.swift mac/log: rename log functions and cleanup class 2024-03-29 14:20:40 +01:00
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 mac/event: add helper to subscribe to mpv events and property changes 2024-03-24 23:03:48 +01:00
touch_bar.swift mac: cleanup swift bridge header imports and unify them 2024-03-29 14:20:40 +01:00
type_helper.swift mac/type: move c<>swift type bridging into a dedicated type helper 2024-03-21 18:33:15 +01:00