Changeset 14123
- Timestamp:
- 03/30/08 06:34:02 (3 months ago)
- Files:
-
- branches/1.5/gdal/alg/thinplatespline.cpp (modified) (1 diff)
- branches/1.5/gdal/alg/thinplatespline.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.5/gdal/alg/thinplatespline.cpp
r14118 r14123 277 277 // Make the necessary memory allocations 278 278 if ( _AA ) 279 delete _AA;279 CPLFree(_AA); 280 280 if ( _Ainv ) 281 delete _Ainv;281 CPLFree(_Ainv); 282 282 283 283 _nof_eqs = _nof_points + 3; 284 284 285 _AA = ( double * ) calloc( _nof_eqs * _nof_eqs, sizeof( double ) );286 _Ainv = ( double * ) calloc( _nof_eqs * _nof_eqs, sizeof( double ) );285 _AA = ( double * )CPLCalloc( _nof_eqs * _nof_eqs, sizeof( double ) ); 286 _Ainv = ( double * )CPLCalloc( _nof_eqs * _nof_eqs, sizeof( double ) ); 287 287 288 288 // Calc the values of the matrix A branches/1.5/gdal/alg/thinplatespline.h
r10645 r14123 79 79 ~VizGeorefSpline2D(){ 80 80 if ( _AA ) 81 delete _AA;81 CPLFree(_AA); 82 82 if ( _Ainv ) 83 delete _Ainv;83 CPLFree(_Ainv); 84 84 85 85 CPLFree( x ); … … 129 129 if ( _AA ) 130 130 { 131 delete _AA;131 CPLFree(_AA); 132 132 _AA = NULL; 133 133 } 134 134 if ( _Ainv ) 135 135 { 136 delete _Ainv;136 CPLFree(_Ainv); 137 137 _Ainv = NULL; 138 138 }
