IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10898


Ignore:
Timestamp:
Jan 3, 2007, 3:00:32 PM (19 years ago)
Author:
jhoblitt
Message:

remove call to psMemSetRefCounter() in listFree() -- after much debate it was decided that this was only there to prevent a 'memory leak' in the scenario were the list was free'd but the iterator was not. This is user error and not the responsibility of listFree() to resolve.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psList.c

    r9730 r10898  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-10-24 22:52:56 $
     8 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-01-04 01:00:32 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4545                // orphan iterators first to avoid any callbacks to dying list
    4646                ((psListIterator*)iterators->data[i])->list = NULL;
    47                 // remove all external references
    48                 psMemSetRefCounter(iterators->data[i], 1);
    4947            }
    5048        }
Note: See TracChangeset for help on using the changeset viewer.