GWEN icon indicating copy to clipboard operation
GWEN copied to clipboard

Custom font destructor

Open Cheaterdev opened this issue 12 years ago • 0 comments

When using custom font for elements like Label in UnitTest: m_Font.facename = L"Comic Sans MS"; m_Font.size = 25; Gwen::Controls::Label* label = new Gwen::Controls::Label( this ); label->SetText( L"Custom Font (Comic Sans 25)" ); label->SetFont( &m_Font ); label->SizeToContents(); label->SetPos( 10, 170 );

There is no call FreeFont to renderer when m_Font dies. It causes some memory leaks.

Cheaterdev avatar Jan 26 '13 09:01 Cheaterdev