1
0
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:
f4exb
2016-03-06 09:40:07 +01:00
parent ca49e2d990
commit cefb6145a2
2 changed files with 6 additions and 1 deletions
+4 -1
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;
}