mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
requests(pause recording): fix memory leak
This commit is contained in:
parent
40178e4661
commit
f9afc5597a
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user