fork download
  1. static void cvRelease(void* t) {
  2.  
  3. try {
  4. IplImage* iplImg = reinterpret_cast<IplImage*>( t );
  5. if( iplImg ) cvReleaseImage( & iplImg );
  6.  
  7. } catch(...) {
  8.  
  9. try {
  10. CvCapture* cvCap = reinterpret_cast<CvCapture*>( t );
  11. if( cvCap ) cvReleaseCapture( & cvCap );
  12.  
  13. } catch(...) {
  14.  
  15. try {
  16. CvVideoWriter* cvVWr = reinterpret_cast<CvVideoWriter*>( t );
  17. if( cvVWr ) cvReleaseVideoWriter( & cvVWr );
  18.  
  19. } catch(...) { }
  20. }
  21. }
  22. }
  23.  
  24. static void cvRelease(...array<void*> ^voidPtr) {
  25.  
  26. for each (void* o in voidPtr)
  27. cvRelease( o );
  28. }
  29.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty