mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-23 15:38:59 -04:00
More memory fixes
This fixes memory leaks in ZASF and Controller. It also sets an uninitalised variable in audio_file_processor.
This commit is contained in:
@@ -740,6 +740,7 @@ AudioFileProcessorWaveView::AudioFileProcessorWaveView( QWidget * _parent, int _
|
||||
m_to( m_sampleBuffer.frames() ),
|
||||
m_last_from( 0 ),
|
||||
m_last_to( 0 ),
|
||||
m_last_amp( 0 ),
|
||||
m_startKnob( 0 ),
|
||||
m_endKnob( 0 ),
|
||||
m_loopKnob( 0 ),
|
||||
|
||||
@@ -89,6 +89,7 @@ LocalZynAddSubFx::LocalZynAddSubFx() :
|
||||
LocalZynAddSubFx::~LocalZynAddSubFx()
|
||||
{
|
||||
delete m_master;
|
||||
delete m_ioEngine;
|
||||
|
||||
if( --s_instanceCount == 0 )
|
||||
{
|
||||
|
||||
@@ -173,8 +173,11 @@ Controller * Controller::create( ControllerTypes _ct, Model * _parent )
|
||||
if( dummy )
|
||||
c = dummy;
|
||||
else
|
||||
{
|
||||
c = new Controller( DummyController, NULL,
|
||||
QString() );
|
||||
dummy = c;
|
||||
}
|
||||
break;
|
||||
|
||||
case Controller::LfoController:
|
||||
|
||||
Reference in New Issue
Block a user