提交 7f0d57f5 编写于 作者: S SoraYuki

rtmp-services: Fix memory leak when update rtmp-custom-service.

上级 b9f77023
......@@ -18,6 +18,8 @@ static void rtmp_custom_update(void *data, obs_data_t *settings)
bfree(service->server);
bfree(service->key);
bfree(service->username);
bfree(service->password);
service->server = bstrdup(obs_data_get_string(settings, "server"));
service->key = bstrdup(obs_data_get_string(settings, "key"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册