mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Requests: Autorelease created scene in CreateScene
Creating the scene increments the referenced scene by one, but we do not decrement it. This produces a memory leak which leads to the scene never being deleted after being removed from the UI.
This commit is contained in:
parent
fe9419fb8a
commit
6740e5fec7
@ -100,7 +100,8 @@ RpcResponse WSRequestHandler::CreateScene(const RpcRequest& request) {
|
||||
if (source) {
|
||||
return request.failed("scene with this name already exists");
|
||||
}
|
||||
obs_scene_create(sceneName);
|
||||
obs_scene_t *createdScene = obs_scene_create(sceneName);
|
||||
obs_scene_release(createdScene);
|
||||
return request.success();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user