mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 13:11:20 -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()
 | 
					GLScope::~GLScope()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if(m_dspEngine != NULL) {
 | 
						cleanup();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if(m_dspEngine != 0)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
		m_dspEngine->removeSink(m_scopeVis);
 | 
							m_dspEngine->removeSink(m_scopeVis);
 | 
				
			||||||
		delete m_scopeVis;
 | 
							delete m_scopeVis;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
@ -117,6 +117,8 @@ GLSpectrum::GLSpectrum(QWidget* parent) :
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
GLSpectrum::~GLSpectrum()
 | 
					GLSpectrum::~GLSpectrum()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						cleanup();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	QMutexLocker mutexLocker(&m_mutex);
 | 
						QMutexLocker mutexLocker(&m_mutex);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	m_changesPending = true;
 | 
						m_changesPending = true;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user