blob: e4a4a17f91468179379f3e2b8a4642386aff0366 (
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.3 2002/11/08 02:46:30 dillo Exp $
--- xpdf/XPDFViewer.cc.orig Sun Nov 3 23:15:37 2002
+++ xpdf/XPDFViewer.cc
@@ -143,9 +143,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) {
|