/[svn]/linuxsampler/trunk/src/linuxsampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/linuxsampler.cpp

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

revision 1212 by schoenebeck, Tue May 29 23:59:36 2007 UTC revision 1248 by persson, Fri Jun 22 10:10:06 2007 UTC
# Line 182  void signal_handler(int iSignal) { Line 182  void signal_handler(int iSignal) {
182      switch (iSignal) {      switch (iSignal) {
183          case SIGINT: {          case SIGINT: {
184              if (pthread_equal(pthread_self(), main_thread)) {              if (pthread_equal(pthread_self(), main_thread)) {
185                  if (pLSCPServer) {                  if (pLSCPServer) pLSCPServer->StopThread();
186                      pLSCPServer->StopThread();                  // the delete order here is important: the Sampler
187                      delete pLSCPServer;                  // destructor sends notifications to the lscpserver
                 }  
188                  if (pSampler) delete pSampler;                  if (pSampler) delete pSampler;
189                    if (pLSCPServer) delete pLSCPServer;
190  #if HAVE_SQLITE3  #if HAVE_SQLITE3
191                  InstrumentsDb::Destroy();                  InstrumentsDb::Destroy();
192  #endif  #endif

Legend:
Removed from v.1212  
changed lines
  Added in v.1248

  ViewVC Help
Powered by ViewVC