Rework curl helpers

This commit is contained in:
WarmUpTill
2022-08-20 00:18:50 +02:00
committed by WarmUpTill
parent c9177c4429
commit 046de4118f
7 changed files with 120 additions and 107 deletions

View File

@@ -487,14 +487,6 @@ bool SwitcherData::anySceneTransitionStarted()
******************************************************************************/
extern "C" void FreeSceneSwitcher()
{
if (loaded_curl_lib) {
if (switcher->curl && f_curl_cleanup) {
f_curl_cleanup(switcher->curl);
}
delete loaded_curl_lib;
loaded_curl_lib = nullptr;
}
PlatformCleanup();
delete switcher;
@@ -691,10 +683,6 @@ extern "C" void InitSceneSwitcher(obs_module_t *m, translateFunc t)
switcher->modulePtr = m;
switcher->translate = t;
if (loadCurl() && f_curl_init) {
switcher->curl = f_curl_init();
}
PlatformInit();
LoadPlugins();
SetupDock();