mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Examples: Fixed resource leaks warnings.
This commit is contained in:
@@ -240,6 +240,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||
bgfx::frame();
|
||||
}
|
||||
|
||||
imguiDestroy();
|
||||
|
||||
free(bigText);
|
||||
|
||||
fontManager->destroyTtf(font);
|
||||
|
||||
@@ -535,6 +535,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||
bgfx::frame();
|
||||
}
|
||||
|
||||
imguiDestroy();
|
||||
|
||||
for (uint32_t ii = 0; ii < 3; ++ii)
|
||||
{
|
||||
mesh_top[ii].unload();
|
||||
|
||||
@@ -309,6 +309,8 @@ Atlas::Atlas(uint16_t _textureSize, const uint8_t* _textureBuffer, uint16_t _reg
|
||||
|
||||
Atlas::~Atlas()
|
||||
{
|
||||
bgfx::destroyTexture(m_textureHandle);
|
||||
|
||||
delete [] m_layers;
|
||||
delete [] m_regions;
|
||||
delete [] m_textureBuffer;
|
||||
|
||||
Reference in New Issue
Block a user