mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fixed two memory leaks
git-svn-id: http://svn.osgeo.org/qgis/trunk@1637 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
0d702bc792
commit
49208bc65f
@ -102,7 +102,7 @@ QgsShapeFileProvider::~QgsShapeFileProvider()
|
||||
{
|
||||
for(int i=0;i<fieldCount();i++)
|
||||
{
|
||||
delete minmaxcache[i];
|
||||
delete[] minmaxcache[i];
|
||||
}
|
||||
delete[] minmaxcache;
|
||||
}
|
||||
@ -539,6 +539,7 @@ void QgsShapeFileProvider::fillMinMaxCash()
|
||||
minmaxcache[i][1]=value;
|
||||
}
|
||||
}
|
||||
delete[] f->getGeometry();
|
||||
}while(f=getNextFeature(true));
|
||||
|
||||
minmaxcachedirty=false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user