IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13961


Ignore:
Timestamp:
Jun 22, 2007, 5:14:32 PM (19 years ago)
Author:
magnier
Message:

handle errors on modelGuessFunc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmModelGroup.c

    r13421 r13961  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-05-18 14:00:45 $
     8 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-06-23 03:14:32 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    216216
    217217    pmModelGuessFunc modelGuessFunc = pmModelGuessFunc_GetFunction(modelType);
    218     modelGuessFunc(model, source);
     218    if (!modelGuessFunc(model, source)) {
     219        psFree (model);
     220        return NULL;
     221    }
     222
    219223    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    220224    return(model);
Note: See TracChangeset for help on using the changeset viewer.