IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2004, 1:15:04 PM (22 years ago)
Author:
desonia
Message:

removed some unnecessary psAborts, replacing them with psErrorMsg(...).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.c

    r1840 r1841  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-09-21 22:30:19 $
     12 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-09-21 23:15:04 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2222
    2323#include "psMemory.h"
    24 #include "psAbort.h"
    2524#include "psError.h"
    2625#include "psImage.h"
     
    5049    psImage* image = (psImage* ) psAlloc(sizeof(psImage));
    5150
    52     if (image == NULL) {
    53         psAbort(__func__, " : Line %d - Failed to allocate memory", __LINE__);
    54     }
    55 
    5651    p_psMemSetDeallocator(image, (psFreeFcn) imageFree);
    5752
    5853    image->data.V = psAlloc(sizeof(void *) * numRows);
    59     if (image->data.V == NULL) {
    60         psFree(image);
    61         psAbort(__func__, " : Line %d - Failed to allocate memory", __LINE__);
    62     }
    6354
    6455    image->rawDataBuffer = psAlloc(area * elementSize);
    65     if (image->rawDataBuffer == NULL) {
    66         psFree(image);
    67         psFree(image->data.V);
    68         psAbort(__func__, " : Line %d - Failed to allocate memory", __LINE__);
    69     }
    7056
    7157    // set the row pointers.
Note: See TracChangeset for help on using the changeset viewer.