1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00

OpenGL modernization: call cleanup() in destructors

This commit is contained in:
f4exb 2016-03-06 09:40:07 +01:00
parent ca49e2d990
commit cefb6145a2
2 changed files with 6 additions and 1 deletions

View File

@ -92,7 +92,10 @@ GLScope::GLScope(QWidget* parent) :
GLScope::~GLScope()
{
if(m_dspEngine != NULL) {
cleanup();
if(m_dspEngine != 0)
{
m_dspEngine->removeSink(m_scopeVis);
delete m_scopeVis;
}

View File

@ -117,6 +117,8 @@ GLSpectrum::GLSpectrum(QWidget* parent) :
GLSpectrum::~GLSpectrum()
{
cleanup();
QMutexLocker mutexLocker(&m_mutex);
m_changesPending = true;