IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2004, 2:40:23 PM (22 years ago)
Author:
gusciora
Message:

Added a spline deallocator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psFunctions.c

    r1945 r1947  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-10-03 23:35:47 $
     9 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-04 00:40:23 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    16851685}
    16861686
     1687// XXX: Have Robert put the dealocator in the memory file.
     1688int p_psSpline1DFree(psSpline1D *tmpSpline)
     1689{
     1690    int i;
     1691
     1692    if (tmpSpline == NULL) {
     1693        return(0);
     1694    }
     1695
     1696    if (tmpSpline->spline != NULL) {
     1697        for (i=0;i<tmpSpline->n;i++) {
     1698            psFree((tmpSpline->spline)[i]);
     1699        }
     1700        psFree(tmpSpline->spline);
     1701    }
     1702
     1703    if (tmpSpline->p_psDeriv2 != NULL) {
     1704        psFree(tmpSpline->p_psDeriv2);
     1705    }
     1706    psFree(tmpSpline->domains);
     1707    psFree(tmpSpline);
     1708
     1709    return(0);
     1710}
     1711
    16871712/*****************************************************************************
    16881713 *****************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.