Browse Source

UI: Fix minor leak

The authors of this function didn't realize that the data object
returned from obs_service_get_settings() is incremented, and must be
released.
jp9000 4 years ago
parent
commit
a668e01788
1 changed files with 2 additions and 0 deletions
  1. 2 0
      UI/window-basic-main.cpp

+ 2 - 0
UI/window-basic-main.cpp

@@ -6162,6 +6162,8 @@ void OBSBasic::YouTubeActionDialogOk(const QString &id, const QString &key,
 	obs_service_update(service_obj, settings);
 	autoStartBroadcast = autostart;
 	autoStopBroadcast = autostop;
+
+	obs_data_release(settings);
 }
 
 void OBSBasic::YoutubeStreamCheck(const std::string &key)