Changeset 1164 for trunk/psLib/src/image/psImage.c
- Timestamp:
- Jun 30, 2004, 2:23:52 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.c
r1073 r1164 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-0 6-23 23:00:15$11 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-07-01 00:23:52 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 50 50 51 51 psImage *image = (psImage *)psAlloc(sizeof(psImage)); 52 if(image == NULL) { 53 psAbort(__func__," : Line %d - Failed to allocate memory", __LINE__); 54 } 55 52 56 p_psMemSetDeallocator(image,(psFreeFcn)imageFree); 53 57 54 58 image->data.V = psAlloc(sizeof(void*)*numRows); 59 if(image->data.V == NULL) { 60 psAbort(__func__," : Line %d - Failed to allocate memory", __LINE__); 61 } 62 55 63 56 64 image->data.V[0] = psAlloc(area*elementSize); 65 if(image->data.V[0] == NULL) { 66 psAbort(__func__," : Line %d - Failed to allocate memory", __LINE__); 67 } 57 68 58 69 for(int i = 1; i < numRows; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
