Pullup ticket #3586 - requested by tez
[pkgsrcv2.git] / print / xpdf / patches / patch-ab
1 $NetBSD$
2
3 --- xpdf/XPDFViewer.cc.orig     2005-08-17 05:34:31.000000000 +0000
4 +++ xpdf/XPDFViewer.cc
5 @@ -175,9 +175,12 @@ XPDFViewer::XPDFViewer(XPDFApp *appA, GS
6  
7  XPDFViewer::~XPDFViewer() {
8    delete core;
9 -  XmFontListFree(aboutBigFont);
10 -  XmFontListFree(aboutVersionFont);
11 -  XmFontListFree(aboutFixedFont);
12 +  if(aboutBigFont)
13 +    XmFontListFree(aboutBigFont);
14 +  if(aboutVersionFont)
15 +    XmFontListFree(aboutVersionFont);
16 +  if(aboutFixedFont)
17 +    XmFontListFree(aboutFixedFont);
18    closeWindow();
19  #ifndef DISABLE_OUTLINE
20    if (outlineLabels) {