IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21437


Ignore:
Timestamp:
Feb 10, 2009, 11:07:45 AM (17 years ago)
Author:
bills
Message:

plug memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksastrom.c

    r21156 r21437  
    11#include "streaksremove.h"
     2
     3static void freeAstrometry(strkAstrom *astrom)
     4{
     5    if (!astrom) {
     6        return;
     7    }
     8    psFree(astrom->pt);
     9}
    210
    311// Initialize the astrometry object for current cell
     
    715    if (!astrom) {
    816        astrom = psAlloc(sizeof(strkAstrom));
     17        psMemSetDeallocator(astrom, (psFreeFunc) freeAstrometry);
    918        astrom->pt = pmAstromObjAlloc();
    1019    }
     
    92101}
    93102
     103
     104
    94105void
    95106chipToCell(double *xCell, double *yCell, strkAstrom *astrom, double xChip, double yChip)
Note: See TracChangeset for help on using the changeset viewer.