Apply 2points' patch to FC font file lister crash problem

Originally committed to SVN as r1580.
This commit is contained in:
Niels Martin Hansen 2007-09-22 15:27:46 +00:00
parent acc2d3753f
commit b0d73ac84c
2 changed files with 10 additions and 0 deletions

View file

@ -76,6 +76,14 @@ wxArrayString FontConfigFontFileLister::DoGetFilesWithFace(wxString facename) {
}
///////////////
// Constructor
FontConfigFontFileLister::FontConfigFontFileLister()
: fontconf(0), aux(0)
{
}
//////////////
// Initialize
void FontConfigFontFileLister::DoInitialize() {

View file

@ -51,6 +51,8 @@ class FontConfigFontFileLister : public FontFileLister {
private:
FcConfig *fontconf;
FcPattern *aux;
FontConfigFontFileLister();
wxArrayString DoGetFilesWithFace(wxString facename);
void DoInitialize();