Changeset 23443
- Timestamp:
- Mar 19, 2009, 3:59:01 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mathtypes/psImage.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r21347 r23443 55 55 56 56 // drop my entry on my parent's array of children 57 // lock parent before freeing child : psArrayRemoveDataNoFree is NOT thread safe58 psMutexLock (parent);57 // lock parent before freeing child : psArrayRemoveDataNoFree is NOT thread safe 58 psMutexLock (parent); 59 59 psArrayRemoveDataNoFree (parent->children, image); 60 psMutexUnlock (parent);60 psMutexUnlock (parent); 61 61 62 62 // drop my reference to my parent … … 87 87 int rowSize = numCols * elementSize; // row size in bytes. 88 88 89 if (numRows < 1) { 90 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 91 _("Specified number of rows (%d) or columns (%d) is invalid."), 92 numRows, numCols); 93 return NULL; 94 } 95 if (numCols < 1) { 96 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 97 _("Specified number of rows (%d) or columns (%d) is invalid."), 98 numRows, numCols); 99 return NULL; 89 if (numRows < 1 || numCols < 1) { 90 psAbort(_("Specified number of rows (%d) or columns (%d) is invalid."), numRows, numCols); 100 91 } 101 92
Note:
See TracChangeset
for help on using the changeset viewer.
