Commit 202afe51 authored by sletz's avatar sletz
Browse files

Correct JackServer::SwitchMaster.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3521 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 078ff07e
......@@ -25,7 +25,7 @@ Paul Davis
Jackdmp changes log
---------------------------
2009-04-21 Stephane Letz <letz@grame.fr>
2009-04-22 Stephane Letz <letz@grame.fr>
* jackctl_server_load_master renamed to jackctl_server_switch_master, jackctl_server_unload_master is removed.
......
......@@ -346,7 +346,9 @@ int JackServer::SwitchMaster(jack_driver_desc_t* driver_desc, JSList* driver_par
JackDriverInfo* info = new JackDriverInfo();
JackDriverClientInterface* master = info->Open(driver_desc, fEngine, GetSynchroTable(), driver_params);
if (master == NULL) {
if (master == NULL || info == NULL) {
delete info;
delete master;
return -1;
} else {
......
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