requests(pause recording): fix memory leak

This commit is contained in:
Stéphane Lepin 2019-09-03 13:22:08 +02:00
parent 40178e4661
commit f9afc5597a

View File

@ -13,6 +13,8 @@ HandlerResponse ifCanPause(WSRequestHandler* req, std::function<HandlerResponse(
bool (*recordingPaused)() = (bool(*)())os_dlsym(frontendApi, "obs_frontend_recording_paused");
void (*pauseRecording)(bool) = (void(*)(bool))os_dlsym(frontendApi, "obs_frontend_recording_pause");
os_dlclose(frontendApi);
if (!recordingPaused || !pauseRecording) {
return req->SendErrorResponse("recording pause not supported");
}