From f81a5be43bfe2fc946f77b97f5ef5a9adfa57c4e Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sun, 13 Jun 2021 00:39:52 -0700 Subject: [PATCH] EventHandler: Fix current profile/scene collection memory leaks --- src/eventhandler/EventHandler_Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eventhandler/EventHandler_Config.cpp b/src/eventhandler/EventHandler_Config.cpp index f0c05203..86c3c0cb 100644 --- a/src/eventhandler/EventHandler_Config.cpp +++ b/src/eventhandler/EventHandler_Config.cpp @@ -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); }