MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / Free

Method Free

3rdparty/tinyxml2/tinyxml2.h:397–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395 }
396
397 virtual void Free( void* mem ) override {
398 if ( !mem ) {
399 return;
400 }
401 --_currentAllocs;
402 Item* item = static_cast<Item*>( mem );
403#ifdef TINYXML2_DEBUG
404 memset( item, 0xfe, sizeof( *item ) );
405#endif
406 item->next = _root;
407 _root = item;
408 }
409 void Trace( const char* name ) {
410 printf( "Mempool %s watermark=%d [%dk] current=%d size=%d nAlloc=%d blocks=%d\n",
411 name, _maxAllocs, _maxAllocs * ITEM_SIZE / 1024, _currentAllocs,

Callers 2

DeleteNodeMethod · 0.80
DeleteAttributeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected