Show
Ignore:
Timestamp:
09/19/09 15:37:31 (4 years ago)
Author:
saturday06
Message:

moumajideeadaofkj

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/src/mil/include/mil/Mil.h

    r34863 r35428  
    121121} 
    122122 
     123struct AutoFree { 
     124        void* ptr; 
     125        AutoFree(void* ptr) : ptr(ptr) { 
     126        } 
     127        ~AutoFree() { 
     128                free(ptr); 
     129        } 
     130}; 
    123131 
    124132#ifdef MIL_OS_WINDOWS