IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2005, 1:44:22 PM (21 years ago)
Author:
desonia
Message:

added enhancement to psFree so that it sets the reference being freed to
NULL (thanks Gus).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.h

    r4298 r4308  
    1212 *  @ingroup MemoryManagement
    1313 *
    14  *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-17 21:42:02 $
     14 *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-17 23:44:21 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    239239/// Free memory.  psFree sends file and line number to p_psFree.
    240240#ifndef SWIG
    241 #define psFree(ptr) p_psFree(ptr, __FILE__, __LINE__)
     241#define psFree(ptr) { p_psFree((psPtr)ptr, __FILE__, __LINE__);  *(void**)&ptr = NULL; }
    242242#endif // ! SWIG
    243243
Note: See TracChangeset for help on using the changeset viewer.