mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-16 18:36:03 +01:00
[Summary] Added missing close on non successful port opening
This commit is contained in:
parent
a1451c1abd
commit
9a5ff32da2
1 changed files with 1 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ WavesMidiDevice::open (PmTimeProcPtr time_proc, void* time_info)
|
|||
std::cerr << "Error: " << err_msg << std::endl;
|
||||
_output_pm_stream = NULL;
|
||||
_pm_output_id = pmNoDevice;
|
||||
close ();
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue