X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..3ca22d5e92f2a6689ebf569239eb127613c6c3cc:/src/unix/fontutil.cpp diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index 5cb5e28a95..beac3babe4 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -144,7 +144,9 @@ bool wxNativeFontInfo::FromString(const wxString& s) wxString wxNativeFontInfo::ToString() const { - wxString tmp = wxGTK_CONV_BACK( pango_font_description_to_string( description ) ); + char *str = pango_font_description_to_string( description ); + wxString tmp = wxGTK_CONV_BACK( str ); + g_free( str ); return tmp; }