mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
The plugin may go out of scope before the callbacks we've queued have fired. It is undefined behavior for these callbacks to access the plugin data after that has occurred. This patch protects these callbacks with weak pointers. Note that the plugin is not ref-counted, so we cannot use `strong_ref` here. |
||
---|---|---|
.. | ||
AudioCodecPlugin.cpp | ||
AudioCodecPlugin.h | ||
AudioCodecPluginAgnostic.cpp | ||
AudioCodecPluginAgnostic.h | ||
EventLoopPlugin.cpp | ||
EventLoopPlugin.h | ||
EventLoopPluginSerenity.cpp | ||
EventLoopPluginSerenity.h | ||
FontPlugin.cpp | ||
FontPlugin.h | ||
ImageCodecPlugin.cpp | ||
ImageCodecPlugin.h | ||
Timer.cpp | ||
Timer.h | ||
TimerSerenity.cpp | ||
TimerSerenity.h |