diff --git a/examples/11-fontsdf/fontsdf.cpp b/examples/11-fontsdf/fontsdf.cpp index 8113595c..a5e24477 100644 --- a/examples/11-fontsdf/fontsdf.cpp +++ b/examples/11-fontsdf/fontsdf.cpp @@ -240,6 +240,8 @@ int _main_(int /*_argc*/, char** /*_argv*/) bgfx::frame(); } + imguiDestroy(); + free(bigText); fontManager->destroyTtf(font); diff --git a/examples/12-lod/lod.cpp b/examples/12-lod/lod.cpp index d6fcdf72..6f97ed0e 100644 --- a/examples/12-lod/lod.cpp +++ b/examples/12-lod/lod.cpp @@ -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(); diff --git a/examples/common/cube_atlas.cpp b/examples/common/cube_atlas.cpp index db0f3b4a..fa73e4dc 100644 --- a/examples/common/cube_atlas.cpp +++ b/examples/common/cube_atlas.cpp @@ -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;