Changeset 1073 for trunk/psLib/src/image/psImage.c
- Timestamp:
- Jun 23, 2004, 1:00:17 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.c (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.c
r996 r1073 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-06- 11 02:02:53$11 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-23 23:00:15 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 28 28 #include "psImage.h" 29 29 30 static void imageFree(psImage* image); 30 31 31 32 /*****************************************************************************/ … … 49 50 50 51 psImage *image = (psImage *)psAlloc(sizeof(psImage)); 52 p_psMemSetDeallocator(image,(psFreeFcn)imageFree); 51 53 52 54 image->data.V = psAlloc(sizeof(void*)*numRows); … … 71 73 } 72 74 73 void psImageFree(psImage *image)75 static void imageFree(psImage* image) 74 76 { 75 77 if (image == NULL) { … … 96 98 psFree(image->data.V); 97 99 image->data.V = NULL; 98 99 psFree(image);100 100 } 101 101 … … 237 237 if (children[i] != NULL) { 238 238 numFreed++; 239 ps ImageFree(children[i]);239 psFree(children[i]); 240 240 } 241 241 } … … 341 341 case PS_TYPE_PTR: \ 342 342 psError(__func__,"Can't copy image from a matrix of pointers."); \ 343 ps ImageFree(output); \343 psFree(output); \ 344 344 return NULL; \ 345 345 default: \ … … 391 391 case PS_TYPE_PTR: 392 392 psError(__func__,"Can't copy image into a matrix of pointers."); 393 ps ImageFree(output);393 psFree(output); 394 394 return NULL; 395 395 } … … 534 534 case PS_TYPE_PTR: 535 535 psError (__func__, "Can't copy image from a matrix of pointers."); 536 ps ImageFree (output);536 psFree (output); 537 537 return ((void *) 0); 538 538 default: … … 676 676 case PS_TYPE_PTR: 677 677 psError (__func__, "Can't copy image from a matrix of pointers."); 678 ps ImageFree (output);678 psFree (output); 679 679 return ((void *) 0); 680 680 default: … … 818 818 case PS_TYPE_PTR: 819 819 psError (__func__, "Can't copy image from a matrix of pointers."); 820 ps ImageFree (output);820 psFree (output); 821 821 return ((void *) 0); 822 822 default: … … 960 960 case PS_TYPE_PTR: 961 961 psError (__func__, "Can't copy image from a matrix of pointers."); 962 ps ImageFree (output);962 psFree (output); 963 963 return ((void *) 0); 964 964 default: … … 1102 1102 case PS_TYPE_PTR: 1103 1103 psError (__func__, "Can't copy image from a matrix of pointers."); 1104 ps ImageFree (output);1104 psFree (output); 1105 1105 return ((void *) 0); 1106 1106 default: … … 1244 1244 case PS_TYPE_PTR: 1245 1245 psError (__func__, "Can't copy image from a matrix of pointers."); 1246 ps ImageFree (output);1246 psFree (output); 1247 1247 return ((void *) 0); 1248 1248 default: … … 1386 1386 case PS_TYPE_PTR: 1387 1387 psError (__func__, "Can't copy image from a matrix of pointers."); 1388 ps ImageFree (output);1388 psFree (output); 1389 1389 return ((void *) 0); 1390 1390 default: … … 1528 1528 case PS_TYPE_PTR: 1529 1529 psError (__func__, "Can't copy image from a matrix of pointers."); 1530 ps ImageFree (output);1530 psFree (output); 1531 1531 return ((void *) 0); 1532 1532 default: … … 1670 1670 case PS_TYPE_PTR: 1671 1671 psError (__func__, "Can't copy image from a matrix of pointers."); 1672 ps ImageFree (output);1672 psFree (output); 1673 1673 return ((void *) 0); 1674 1674 default: … … 1812 1812 case PS_TYPE_PTR: 1813 1813 psError (__func__, "Can't copy image from a matrix of pointers."); 1814 ps ImageFree (output);1814 psFree (output); 1815 1815 return ((void *) 0); 1816 1816 default: … … 1954 1954 case PS_TYPE_PTR: 1955 1955 psError (__func__, "Can't copy image from a matrix of pointers."); 1956 ps ImageFree (output);1956 psFree (output); 1957 1957 return ((void *) 0); 1958 1958 default: … … 2096 2096 case PS_TYPE_PTR: 2097 2097 psError (__func__, "Can't copy image from a matrix of pointers."); 2098 ps ImageFree (output);2098 psFree (output); 2099 2099 return ((void *) 0); 2100 2100 default: … … 2104 2104 case PS_TYPE_PTR: 2105 2105 psError (__func__, "Can't copy image into a matrix of pointers."); 2106 ps ImageFree (output);2106 psFree (output); 2107 2107 return ((void *) 0); 2108 2108 }
Note:
See TracChangeset
for help on using the changeset viewer.
