MCPcopy Create free account
hub / github.com/creatale/node-dv / cvReleaseMemStorage

Function cvReleaseMemStorage

deps/opencv/modules/core/src/datastructs.cpp:173–186  ·  view source on GitHub ↗

Release memory storage: */

Source from the content-addressed store, hash-verified

171
172/* Release memory storage: */
173CV_IMPL void
174cvReleaseMemStorage( CvMemStorage** storage )
175{
176 if( !storage )
177 CV_Error( CV_StsNullPtr, "" );
178
179 CvMemStorage* st = *storage;
180 *storage = 0;
181 if( st )
182 {
183 icvDestroyMemStorage( st );
184 cvFree( &st );
185 }
186}
187
188
189/* Clears memory storage (return blocks to the parent, if any): */

Callers 9

cvSeqPartitionFunction · 0.85
cvReleaseGraphScannerFunction · 0.85
cvReleaseFileStorageFunction · 0.85
icvWriteSparseMatFunction · 0.85
cvReleaseSparseMatFunction · 0.85
delete_objMethod · 0.85
core_c.hFile · 0.85
icvApproxPolyDPFunction · 0.85
cvEndFindContoursFunction · 0.85

Calls 1

icvDestroyMemStorageFunction · 0.85

Tested by

no test coverage detected