Skip to content

Commit c6377a3

Browse files
author
homann
committedMar 4, 2007
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
1 parent 01a7ee1 commit c6377a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/raster/qgsrasterlayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ void QgsRasterLayer::drawSingleBandGray(QPainter * theQPainter, QgsRasterViewPor
15221522
}
15231523
}
15241524

1525-
/* TODO: Should readData be freed here? */
1525+
CPLFree ( myGdalScanData );
15261526

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

1842-
/* TODO: Should readData be freed here? */
1842+
CPLFree(myGdalScanData);
18431843

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

0 commit comments

Comments
 (0)
Please sign in to comment.