I have a memory leak when I create the font, this the what I get from the memory leak information
f:\vs70builds\3077\vc\crtbld\crt\src\newop.cpp (12): operator new
f:\vs70builds\3077\vc\crtbld\crt\src\newaop.cpp (7): operator new[]
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguistring.cpp (68): CEGUI::String::grow
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\include\ceguistring.h (1328): CEGUI::String::assign
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\include\ceguistring.h (405): CEGUI::String::String
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\include\ceguiproperty.h (86): CEGUI::Property::Property
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontproperties.cpp (188): CEGUI::FontProperties::FreeTypeAntialiased::FreeTypeAntialiased
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontproperties.cpp (276): CEGUI::FreeTypeFont::addFreeTypeFontProperties
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifreetypefont.cpp (95): CEGUI::FreeTypeFont::FreeTypeFont
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontmanager.cpp (160): CEGUI::FontManager::createFont
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifont_xmlhandler.cpp (85): CEGUI::Font_xmlHandler::elementFontStart
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifont_xmlhandler.cpp (61): CEGUI::Font_xmlHandler::elementStart
0x0213E4F7 (File and line number not available): (Function name unavailable)
0x02146DB7 (File and line number not available): (Function name unavailable)
0x02149810 (File and line number not available): (Function name unavailable)
0x0214B635 (File and line number not available): (Function name unavailable)
0x0214AD6C (File and line number not available): (Function name unavailable)
0x0214A5BA (File and line number not available): (Function name unavailable)
0x02144E29 (File and line number not available): (Function name unavailable)
0x02144CA5 (File and line number not available): (Function name unavailable)
0x0213DE86 (File and line number not available): (Function name unavailable)
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontmanager.cpp (97): CEGUI::FontManager::createFont
---------------------------------------------------------------------------
f:\vs70builds\3077\vc\crtbld\crt\src\newop.cpp (12): operator new
f:\vs70builds\3077\vc\crtbld\crt\src\newaop.cpp (7): operator new[]
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguistring.cpp (68): CEGUI::String::grow
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\include\ceguistring.h (1328): CEGUI::String::assign
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\include\ceguistring.h (405): CEGUI::String::String
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\include\ceguiproperty.h (86): CEGUI::Property::Property
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontproperties.cpp (162): CEGUI::FontProperties::FreeTypePointSize::FreeTypePointSize
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontproperties.cpp (275): CEGUI::FreeTypeFont::addFreeTypeFontProperties
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifreetypefont.cpp (95): CEGUI::FreeTypeFont::FreeTypeFont
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontmanager.cpp (160): CEGUI::FontManager::createFont
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifont_xmlhandler.cpp (85): CEGUI::Font_xmlHandler::elementFontStart
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifont_xmlhandler.cpp (61): CEGUI::Font_xmlHandler::elementStart
0x0213E4F7 (File and line number not available): (Function name unavailable)
0x02146DB7 (File and line number not available): (Function name unavailable)
0x02149810 (File and line number not available): (Function name unavailable)
0x0214B635 (File and line number not available): (Function name unavailable)
0x0214AD6C (File and line number not available): (Function name unavailable)
0x0214A5BA (File and line number not available): (Function name unavailable)
0x02144E29 (File and line number not available): (Function name unavailable)
0x02144CA5 (File and line number not available): (Function name unavailable)
0x0213DE86 (File and line number not available): (Function name unavailable)
k:\programmingtool\cegui-0.5.0-rc2\cegui_mk2\src\ceguifontmanager.cpp (97): CEGUI::FontManager::createFont
-----------------------------------------------------------------------------
.
.
.
......
more leaking around the string class
Can anyone told me what is the proper way to release my font? I create my front by calling this
Code: Select all
FontManager::getSingleton().createFont("Commonwealth-10.font");
Thanks![/code]