Changeset 6221 for trunk/ippTools/src/pxalloc.c
- Timestamp:
- Jan 26, 2006, 4:43:36 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxalloc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxalloc.c
r6210 r6221 1 1 #include "pxtools.h" 2 2 3 static void ppRawFrameFree(ppRawFrame *ptr);3 static void rawScienceFrameFree(rawScienceFrame *ptr); 4 4 static void p2PendingFrameFree(p2PendingFrame *ptr); 5 5 static void p2DoneFrameFree(p2DoneFrame *ptr); 6 6 7 ppRawFrame *ppRawFrameAlloc(7 rawScienceFrame *rawScienceFrameAlloc( 8 8 rawScienceExpRow *exposure, 9 9 psArray *images 10 10 ) 11 11 { 12 ppRawFrame *frame;12 rawScienceFrame *frame; 13 13 14 14 PS_ASSERT_PTR_NON_NULL(exposure, NULL); 15 15 PS_ASSERT_PTR_NON_NULL(images, NULL); 16 16 17 frame = psAlloc(sizeof( ppRawFrame));18 psMemSetDeallocator(frame, (psFreeFunc) ppRawFrameFree);17 frame = psAlloc(sizeof(rawScienceFrame)); 18 psMemSetDeallocator(frame, (psFreeFunc)rawScienceFrameFree); 19 19 20 20 frame->exposure = exposure; … … 24 24 } 25 25 26 static void ppRawFrameFree(ppRawFrame *ptr)26 static void rawScienceFrameFree(rawScienceFrame *ptr) 27 27 { 28 28 psFree(ptr->exposure);
Note:
See TracChangeset
for help on using the changeset viewer.
