IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 3, 2008, 12:00:33 PM (18 years ago)
Author:
Paul Price
Message:

Can only lock if pointer is non-NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtraction.c

    r19335 r19344  
    11411141                psArrayAdd(args, 1, (pmReadout*)ro2); // Casting away const
    11421142                // Since adding to the array can impact the reference count, we need to lock
    1143                 psMutexLock(subMask);
     1143                if (subMask) {
     1144                    psMutexLock(subMask);
     1145                }
    11441146                psArrayAdd(args, 1, (psImage*)subMask); // Casting away const
    1145                 psMutexUnlock(subMask);
     1147                if (subMask) {
     1148                    psMutexUnlock(subMask);
     1149                }
    11461150                PS_ARRAY_ADD_SCALAR(args, maskBad, PS_TYPE_U8);
    11471151                PS_ARRAY_ADD_SCALAR(args, maskPoor, PS_TYPE_U8);
Note: See TracChangeset for help on using the changeset viewer.