Commit 41cd5e3b authored by sletz's avatar sletz
Browse files

Cleanup.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4617 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 41a21386
......@@ -2091,19 +2091,23 @@ LIB_EXPORT void jack_session_commands_free(jack_session_command_t *cmds)
JackGlobals::CheckContext("jack_session_commands_free");
#endif
if (!cmds)
if (!cmds) {
return;
}
int i = 0;
while (1) {
if (cmds[i].client_name)
if (cmds[i].client_name) {
free ((char *)cmds[i].client_name);
if (cmds[i].command)
}
if (cmds[i].command) {
free ((char *)cmds[i].command);
if (cmds[i].uuid)
}
if (cmds[i].uuid) {
free ((char *)cmds[i].uuid);
else
} else {
break;
}
i += 1;
}
......
......@@ -135,7 +135,7 @@ void JackAudioAdapter::ConnectPorts()
ports = jack_get_ports(fClient, NULL, NULL, JackPortIsPhysical | JackPortIsInput);
if (ports != NULL) {
for (int i = 0; i < fAudioAdapter->GetInputs() && ports[i]; i++) {
jack_connect(fClient,jack_port_name(fCapturePortList[i]), ports[i]);
jack_connect(fClient, jack_port_name(fCapturePortList[i]), ports[i]);
}
jack_free(ports);
}
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment