/[svn]/linuxsampler/trunk/src/engines/gig/EngineChannel.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/EngineChannel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1761 by iliev, Fri Aug 29 15:42:06 2008 UTC revision 1826 by iliev, Sat Jan 24 14:32:35 2009 UTC
# Line 64  namespace LinuxSampler { namespace gig { Line 64  namespace LinuxSampler { namespace gig {
64    
65      EngineChannel::~EngineChannel() {      EngineChannel::~EngineChannel() {
66          DisconnectAudioOutputDevice();          DisconnectAudioOutputDevice();
67    
68            // In case the channel was removed before the instrument was
69            // fully loaded, try to give back instrument again (see bug #113)
70            instrument_change_command_t& cmd = ChangeInstrument(NULL);
71            if (cmd.pInstrument) {
72                    Engine::instruments.HandBack(cmd.pInstrument, this);
73            }
74            ///////
75    
76          if (pEventQueue) delete pEventQueue;          if (pEventQueue) delete pEventQueue;
77          if (pActiveKeys) delete pActiveKeys;          if (pActiveKeys) delete pActiveKeys;
78          if (pMIDIKeyInfo) delete[] pMIDIKeyInfo;          if (pMIDIKeyInfo) delete[] pMIDIKeyInfo;

Legend:
Removed from v.1761  
changed lines
  Added in v.1826

  ViewVC Help
Powered by ViewVC