Navigation Menu

Skip to content

Commit

Permalink
Fixed memory leaks in raster drawing
Browse files Browse the repository at this point in the history
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 c6377a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raster/qgsrasterlayer.cpp
Expand Up @@ -1522,7 +1522,7 @@ void QgsRasterLayer::drawSingleBandGray(QPainter * theQPainter, QgsRasterViewPor
}
}

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

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

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

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

0 comments on commit c6377a3

Please sign in to comment.