Skip to content
Permalink
Browse files
Fixed memory leaks in raster drawing
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6763 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Mar 4, 2007
1 parent 01a7ee1 commit c6377a3d91855ae3c035eb76d4fe64f779647333
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/raster/qgsrasterlayer.cpp
@@ -1522,7 +1522,7 @@ void QgsRasterLayer::drawSingleBandGray(QPainter * theQPainter, QgsRasterViewPor
}
}

/* TODO: Should readData be freed here? */
CPLFree ( myGdalScanData );

//render any inline filters
filterLayer(&myQImage);
@@ -1839,7 +1839,7 @@ void QgsRasterLayer::drawPalettedSingleBandColor(QPainter * theQPainter, QgsRast
}
}

/* TODO: Should readData be freed here? */
CPLFree(myGdalScanData);

//render any inline filters
filterLayer(&myQImage);

0 comments on commit c6377a3

Please sign in to comment.