initialization of fontconfig library in GlobalParams.cc by FcInit() is not accompanied by FcFini() in destructor. This results in valgrind reporting memory leaks. May be this is just an annoyance to me. Calling FcFini(); just before deleting GlobalParams reduces the reported errors to one.
Unfortunately Fontconfig doesn't "count" the number of FcInits done and on the first FcFini it frees memory. That means doing FcFini in poppler is dangerous because it would destroy the fontconfig memory of your app if your app did FcInit before poppler.
understood, thanks for the explanation
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.