[Summary] Added missing close on non successful port opening

This commit is contained in:
Greg Zharun 2015-03-02 15:45:10 +02:00
parent a1451c1abd
commit 9a5ff32da2

View file

@ -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;
}
}