MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / freeResources

Method freeResources

Engine/source/gui/controls/guiMLTextCtrl.cpp:502–519  ·  view source on GitHub ↗

--------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

500
501//--------------------------------------------------------------------------
502void GuiMLTextCtrl::freeResources()
503{
504 for(Font* walk = mFontList; walk; walk = walk->next)
505 {
506 walk->fontRes = NULL;
507 delete[] walk->faceName;
508 }
509
510 for(Bitmap* bwalk = mBitmapList; bwalk; bwalk = bwalk->next)
511 bwalk->bitmapObject = 0;
512
513 mFontList = NULL;
514 mBitmapList = NULL;
515 mResourceChunker.freeBlocks();
516 mDirty = true;
517
518 freeLineBuffers();
519}
520
521//--------------------------------------------------------------------------
522void GuiMLTextCtrl::onSleep()

Callers

nothing calls this directly

Calls 1

freeBlocksMethod · 0.45

Tested by

no test coverage detected