diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index cdf3cd0098..8bdd44191e 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -56,7 +56,7 @@ static inline void wxFreeFont(wxNativeFont font) { - XFreeFont((Display *)wxGetDisplay(), font); + XFreeFont((Display *)wxGetDisplay(), (XFontStruct *)font); } #elif defined(__WXGTK__) static inline wxNativeFont wxLoadFont(const wxString& fontSpec)