MCPcopy Create free account
hub / github.com/SFML/SFML / cleanup

Method cleanup

src/SFML/Graphics/Font.cpp:439–450  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

437
438////////////////////////////////////////////////////////////
439void Font::cleanup()
440{
441 // Drop ownership of shared FreeType pointers
442 m_fontHandles.reset();
443
444 // Reset members
445 m_pages.clear();
446 std::vector<std::uint8_t>().swap(m_pixelBuffer);
447
448 // Drop the file stream if we held one due to openFromFile or openFromMemory
449 m_stream.reset();
450}
451
452
453////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

resetMethod · 0.80
clearMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected