[poppler] fontconfig not shut down

Vincent Torri vtorri at univ-evry.fr
Sun Mar 29 01:01:24 PDT 2009


Hey,

in the destructor of a globalParams, fontconfig is not shut dows while it 
is initialized in the constructor.

Here is a patch:


diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index 9c42f36..4e935dc 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -835,6 +835,10 @@ GlobalParams::~GlobalParams() {
    gDestroyMutex(&unicodeMapCacheMutex);
    gDestroyMutex(&cMapCacheMutex);
  #endif
+
+#ifndef _MSC_VER
+  FcFini();
+#endif
  }


//------------------------------------------------------------------------



I'm not sure that one should also call

FcConfigDestroy(FCcfg);

before FcFini().

regards

Vincent Torri


More information about the poppler mailing list