Skip to content

Commit 2f35a7b

Browse files
committedNov 13, 2013
#8725: Replace malloc by OGRMalloc
1 parent e1c8300 commit 2f35a7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/providers/ogr/qgsogrfeatureiterator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void QgsOgrFeatureIterator::notifyLoadedFeature( OGRFeatureH fet, QgsFeature& fe
310310
QgsOgrSimplifiedFeatureIterator::QgsOgrSimplifiedFeatureIterator( QgsOgrProvider* p, const QgsFeatureRequest& request ) : QgsOgrFeatureIterator( p, request )
311311
{
312312
mPointBufferCount = 512;
313-
mPointBufferPtr = (OGRRawPoint*)malloc( mPointBufferCount * sizeof(OGRRawPoint) );
313+
mPointBufferPtr = (OGRRawPoint*)OGRMalloc( mPointBufferCount * sizeof(OGRRawPoint) );
314314
}
315315
QgsOgrSimplifiedFeatureIterator::~QgsOgrSimplifiedFeatureIterator( )
316316
{
@@ -332,7 +332,7 @@ OGRRawPoint* QgsOgrSimplifiedFeatureIterator::mallocPoints( int numPoints )
332332
if ( mPointBufferPtr==NULL )
333333
{
334334
mPointBufferCount = numPoints;
335-
mPointBufferPtr = (OGRRawPoint*)malloc( mPointBufferCount * sizeof(OGRRawPoint) );
335+
mPointBufferPtr = (OGRRawPoint*)OGRMalloc( mPointBufferCount * sizeof(OGRRawPoint) );
336336
}
337337
return mPointBufferPtr;
338338
}

0 commit comments

Comments
 (0)
Please sign in to comment.