Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 639:f54722b34c3a
Fix crash on exit when not using OSC (https://sourceforge.net/p/sv1/bugs/263/)
author | Chris Cannam |
---|---|
date | Wed, 19 Dec 2018 09:29:05 +0000 |
parents | 109a1dd59f45 |
children | fffb78793ca7 |
comparison
equal
deleted
inserted
replaced
637:109a1dd59f45 | 639:f54722b34c3a |
---|---|
326 delete m_recordTarget; | 326 delete m_recordTarget; |
327 | 327 |
328 delete m_viewManager; | 328 delete m_viewManager; |
329 delete m_midiInput; | 329 delete m_midiInput; |
330 | 330 |
331 disconnect(m_oscQueueStarter, 0, 0, 0); | 331 if (m_oscQueueStarter) { |
332 m_oscQueueStarter->wait(1000); | 332 disconnect(m_oscQueueStarter, 0, 0, 0); |
333 if (m_oscQueueStarter->isRunning()) { | |
334 m_oscQueueStarter->terminate(); | |
335 m_oscQueueStarter->wait(1000); | 333 m_oscQueueStarter->wait(1000); |
336 } | 334 if (m_oscQueueStarter->isRunning()) { |
337 delete m_oscQueueStarter; | 335 m_oscQueueStarter->terminate(); |
338 delete m_oscQueue; | 336 m_oscQueueStarter->wait(1000); |
337 } | |
338 delete m_oscQueueStarter; | |
339 delete m_oscQueue; | |
340 } | |
339 | 341 |
340 Profiles::getInstance()->dump(); | 342 Profiles::getInstance()->dump(); |
341 } | 343 } |
342 | 344 |
343 void | 345 void |