1
0
Эх сурвалжийг харах

Merge pull request #2598 from sorayuki/bugfix/rtmp-custom-memleak

rtmp-services: Fix memory leak when updating rtmp-custom-service.
Richard Stanway 5 жил өмнө
parent
commit
9023a57afc

+ 2 - 0
plugins/rtmp-services/rtmp-custom.c

@@ -18,6 +18,8 @@ static void rtmp_custom_update(void *data, obs_data_t *settings)
 
 
 	bfree(service->server);
 	bfree(service->server);
 	bfree(service->key);
 	bfree(service->key);
+	bfree(service->username);
+	bfree(service->password);
 
 
 	service->server = bstrdup(obs_data_get_string(settings, "server"));
 	service->server = bstrdup(obs_data_get_string(settings, "server"));
 	service->key = bstrdup(obs_data_get_string(settings, "key"));
 	service->key = bstrdup(obs_data_get_string(settings, "key"));