- Timestamp:
- Dec 21, 2010, 3:01:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psphot/src/psphotSourceMatch.c
r30096 r30141 243 243 peak->footprint = pmFootprintCopyData(footprint, readout->image); 244 244 245 // the peak does not claim ownership of the footprint (it does not free it). save a copy of this 246 // footprint on detections->footprints so we can free it later 247 psArrayAdd(detections->footprints, 100, peak->footprint); 248 psFree (peak->footprint); 249 245 250 // create a new source 246 251 pmSource *source = pmSourceAlloc(); … … 249 254 250 255 // add the peak 251 source->peak = p sMemIncrRefCounter(peak);256 source->peak = peak; 252 257 253 258 // allocate space for moments … … 261 266 psArrayAdd (detections->newSources, 100, source); 262 267 psFree (source); 263 psFree (peak);264 268 } 265 269 psFree (footprint);
Note:
See TracChangeset
for help on using the changeset viewer.
