There is a small problem shown by new gcc with the types used in the TrueType fonts handling.
Created attachment 5152 [details] ghostscript-8.60-truetype.dif this small patch avoids the problem
This patch needs _careful_ review.
All PostScript & PDF patterns/shadings can be represented as patterns or shadings in an output PDF file, so there is (generally at least) no need to fall back to conversion into an image or images. I haven't searched exhaustively, but I haven't seen a PS/PDF file exercise this path. The problem doesn't seem to be pdfwrite, the reference counting takes place in the graphics library.
<sigh> Sorry, comment #3 was intended for a different issue....
No problem ... I'm familiar with the handling of large numbers of bugzilla entries ;)
Since revision 11071 (approximately) Ghostscript now uses the FreeType engine for font interpretation and rasterisation by default. As a result this code is not usually used. We are temporarily retaining it for backward compatibility (should anyone find a problem with the FreeType integration they will be able to switch back) but will eventually remove it from the code base.