RemoteVstPlugin: reset m_inputs and m_outputs in updateInOutCount()

Reset m_inputs and m_outputs to NULL after deleting the memory they're
pointing to. Fixes possible crash if new input or output count is 0
and the count changes again later.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Tobias Doerffel
2009-07-07 00:45:26 +02:00
parent 38f7552ce4
commit 206d906c10

View File

@@ -885,6 +885,9 @@ void RemoteVstPlugin::updateInOutCount()
delete[] m_inputs;
delete[] m_outputs;
m_inputs = NULL;
m_outputs = NULL;
setInputCount( inputCount() );
setOutputCount( outputCount() );