mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Merge pull request #945 from norihiro/4.x-compat-fix-memory-leak
Events: Fix memory leak
This commit is contained in:
@ -610,8 +610,10 @@ void WSEvents::OnTransitionListChange() {
|
|||||||
*/
|
*/
|
||||||
void WSEvents::OnProfileChange() {
|
void WSEvents::OnProfileChange() {
|
||||||
OBSDataAutoRelease fields = obs_data_create();
|
OBSDataAutoRelease fields = obs_data_create();
|
||||||
obs_data_set_string(fields, "profile", obs_frontend_get_current_profile());
|
char *profile = obs_frontend_get_current_profile();
|
||||||
|
obs_data_set_string(fields, "profile", profile);
|
||||||
broadcastUpdate("ProfileChanged", fields);
|
broadcastUpdate("ProfileChanged", fields);
|
||||||
|
bfree(profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user