Files
obs-studio/libobs
Richard StanwayandRyan Foster 6d0083dd61 libobs, docs: Document intended use of obs_module_unload
obs_module_unload was never properly documented, so some plugins use it
to free resources, some use it to save data, etc. While libobs tries to
ensure all objects are shut down and destroyed before calling unload, if
another plugin is holding a strong reference, or if a reference leak has
occurred, libobs may need to call back into a plugin-provided object's
destroy function even after obs_module_unload has returned. If the
plugin has freed memory or other resources needed for the callback then
this likely results in a crash.

Going forward, we should document that obs_module_unload is now intended
only for saving data and releasing references, and that calling libobs
after it returns is not allowed. For cases where resource cleanup is
actually needed (for example, an external out of process helper needs to
be shut down or a release call to a hardware driver), a new
obs_module_destroy callback is intended to be added in a future version.
2026-08-22 16:03:18 -04:00
..
2022-07-19 09:28:51 -03:00
2026-08-14 16:57:12 -04:00
2023-05-20 01:31:18 -07:00
2025-08-22 20:21:36 -04:00
2025-08-22 21:11:53 -04:00
2026-08-20 17:26:22 -04:00
2026-06-09 13:41:19 -04:00