Fix memory leak (closes bug 1191328)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -79,10 +79,10 @@ wxXFont::wxXFont()
|
|||||||
|
|
||||||
wxXFont::~wxXFont()
|
wxXFont::~wxXFont()
|
||||||
{
|
{
|
||||||
// TODO: why does freeing the font produce a segv???
|
// Freeing the font used to produce a segv, but
|
||||||
// Note that XFreeFont wasn't called in wxWin 1.68 either.
|
// appears to be OK now (bug fix in X11?)
|
||||||
// XFontStruct* fontStruct = (XFontStruct*) m_fontStruct;
|
XFontStruct* fontStruct = (XFontStruct*) m_fontStruct;
|
||||||
// XFreeFont((Display*) m_display, fontStruct);
|
XFreeFont((Display*) m_display, fontStruct);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user