mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
EventHandler: Fix current profile/scene collection memory leaks
This commit is contained in:
parent
f608423045
commit
f81a5be43b
@ -5,7 +5,7 @@
|
||||
void EventHandler::HandleCurrentSceneCollectionChanged()
|
||||
{
|
||||
json eventData;
|
||||
eventData["sceneCollectionName"] = obs_frontend_get_current_scene_collection();
|
||||
eventData["sceneCollectionName"] = Utils::Obs::StringHelper::GetCurrentSceneCollection();
|
||||
_webSocketServer->BroadcastEvent(EventSubscription::Config, "CurrentSceneCollectionChanged", eventData);
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ void EventHandler::HandleSceneCollectionListChanged()
|
||||
void EventHandler::HandleCurrentProfileChanged()
|
||||
{
|
||||
json eventData;
|
||||
eventData["profileName"] = obs_frontend_get_current_profile();
|
||||
eventData["profileName"] = Utils::Obs::StringHelper::GetCurrentProfile();
|
||||
_webSocketServer->BroadcastEvent(EventSubscription::Config, "CurrentProfileChanged", eventData);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user