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>
(cherry picked from commit 206d906c10)
This commit is contained in:
Tobias Doerffel
2009-07-07 00:45:26 +02:00
parent 4e81299729
commit d8c616afcf

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() );