mirror of https://github.com/mpv-player/mpv
e42a8d537f
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 |
||
---|---|---|
.. | ||
app_bridge.h | ||
app_bridge.m | ||
app_bridge_objc.h | ||
app_hub.swift | ||
application.swift | ||
event_helper.swift | ||
input_helper.swift | ||
libmpv_helper.swift | ||
log_helper.swift | ||
menu_bar.swift | ||
meson.build | ||
option_helper.swift | ||
precise_timer.swift | ||
presentation.swift | ||
remote_command_center.swift | ||
swift_compat.swift | ||
swift_extensions.swift | ||
touch_bar.swift | ||
type_helper.swift |