Skip to content
Permalink
Browse files

#8725: Replace malloc by OGRMalloc

  • Loading branch information
ahuarte47 committed Nov 13, 2013
1 parent e1c8300 commit 2f35a7b40445cb1a0ce3fd3b03e222d580a79eb0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -310,7 +310,7 @@ void QgsOgrFeatureIterator::notifyLoadedFeature( OGRFeatureH fet, QgsFeature& fe
QgsOgrSimplifiedFeatureIterator::QgsOgrSimplifiedFeatureIterator( QgsOgrProvider* p, const QgsFeatureRequest& request ) : QgsOgrFeatureIterator( p, request )
{
mPointBufferCount = 512;
mPointBufferPtr = (OGRRawPoint*)malloc( mPointBufferCount * sizeof(OGRRawPoint) );
mPointBufferPtr = (OGRRawPoint*)OGRMalloc( mPointBufferCount * sizeof(OGRRawPoint) );
}
QgsOgrSimplifiedFeatureIterator::~QgsOgrSimplifiedFeatureIterator( )
{
@@ -332,7 +332,7 @@ OGRRawPoint* QgsOgrSimplifiedFeatureIterator::mallocPoints( int numPoints )
if ( mPointBufferPtr==NULL )
{
mPointBufferCount = numPoints;
mPointBufferPtr = (OGRRawPoint*)malloc( mPointBufferCount * sizeof(OGRRawPoint) );
mPointBufferPtr = (OGRRawPoint*)OGRMalloc( mPointBufferCount * sizeof(OGRRawPoint) );
}
return mPointBufferPtr;
}

0 comments on commit 2f35a7b

Please sign in to comment.
You can’t perform that action at this time.