mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Request: Fix memory leak and crash in ValidateInput
This commit is contained in:
parent
271db036fe
commit
ce8f393eb8
@ -150,6 +150,7 @@ obs_source_t *Request::ValidateInput(const std::string keyName, RequestStatus::R
|
||||
}
|
||||
|
||||
if (obs_source_get_type(ret) != OBS_SOURCE_TYPE_INPUT) {
|
||||
obs_source_release(ret);
|
||||
statusCode = RequestStatus::InvalidSourceType;
|
||||
comment = "The specified source is not an input.";
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user