IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21439


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

plug memory leak

File:
1 edited

Legend:

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

    r20670 r21439  
    5555}
    5656
     57static void streaksFree(Streaks *streaks);
     58
    5759/** Read a list of streak equatorial coordinate definitions and width
    5860    from a text file.  The format is:
     
    8486        }
    8587        streaks->list = psAlloc (streaks->size * sizeof(streak));
     88        psMemSetDeallocator(streaks, (psFreeFunc) streaksFree);
    8689        for (i = 0; i != streaks->size; ++i)
    8790        {
     
    101104    return streaks;
    102105}
     106
     107static void streaksFree(Streaks *streaks)
     108{
     109    psFree(streaks->list);
     110}
Note: See TracChangeset for help on using the changeset viewer.