mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -05:00
OpenGL modernization: call cleanup() in destructors
This commit is contained in:
parent
ca49e2d990
commit
cefb6145a2
@ -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;
|
||||
}
|
||||
|
@ -117,6 +117,8 @@ GLSpectrum::GLSpectrum(QWidget* parent) :
|
||||
|
||||
GLSpectrum::~GLSpectrum()
|
||||
{
|
||||
cleanup();
|
||||
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
|
||||
m_changesPending = true;
|
||||
|
Loading…
Reference in New Issue
Block a user