1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-29 00:03:59 -04:00

Fix memory leak

This commit is contained in:
Nyall Dawson 2016-02-01 22:31:34 +11:00
parent ad39ddfdd4
commit 639d1b3977

@ -100,6 +100,7 @@ int QgsRasterCalculator::processCalculation( QProgressDialog* p )
} }
if ( block->isEmpty() ) if ( block->isEmpty() )
{ {
delete block;
delete calcNode; delete calcNode;
qDeleteAll( inputBlocks ); qDeleteAll( inputBlocks );
return static_cast<int>( MemoryError ); return static_cast<int>( MemoryError );