blob: 4b4a8ae3d335478a74fd70ea7ce5e6b84b36f092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ab,v 1.5 2005/09/07 15:19:08 adam Exp $
--- xpdf/XPDFViewer.cc.orig 2005-08-17 05:34:31.000000000 +0000
+++ xpdf/XPDFViewer.cc
@@ -175,9 +175,12 @@ XPDFViewer::XPDFViewer(XPDFApp *appA, GS
XPDFViewer::~XPDFViewer() {
delete core;
- XmFontListFree(aboutBigFont);
- XmFontListFree(aboutVersionFont);
- XmFontListFree(aboutFixedFont);
+ if(aboutBigFont)
+ XmFontListFree(aboutBigFont);
+ if(aboutVersionFont)
+ XmFontListFree(aboutVersionFont);
+ if(aboutFixedFont)
+ XmFontListFree(aboutFixedFont);
closeWindow();
#ifndef DISABLE_OUTLINE
if (outlineLabels) {
|