Changeset 5216 for trunk/psLib/src/mathtypes
- Timestamp:
- Sep 30, 2005, 4:22:26 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mathtypes/psImage.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r5178 r5216 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.8 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2005- 09-29 19:05:02 $11 * @version $Revision: 1.89 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-10-01 02:22:12 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 39 39 40 40 if (image->parent != NULL) { 41 psMemBlock* ptr = ((psMemBlock*)image)-1; 42 int ref = ptr->refCounter; 43 ptr->refCounter = 2; // make sure psFree is not retriggered 41 44 psArrayRemove(image->parent->children,image); 45 ptr->refCounter = ref; // restore previous count (not assuming zero, but should be) 46 42 47 image->parent = NULL; 43 48 }
Note:
See TracChangeset
for help on using the changeset viewer.
