mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-26 12:04:13 -04:00
OpenGL modernization: call cleanup() in destructors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user