summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorJeff Muizelaar <jeff@infidigm.net>2006-04-12 05:46:44 +0000
committerJeff Muizelaar <jeff@infidigm.net>2006-04-12 05:46:44 +0000
commit6039d4fc65cb25bef20efa29bc29d42086fc0854 (patch)
treed00f6f2ca82572b3b1c48010e675561371ac9d9d /poppler
parentd839a0bd78361930e5e2fe889df12e1e853ffed3 (diff)
2006-04-12 Jeff Muizelaar <jeff@infidigm.net>
* poppler/CairoOutputDev.cc: Fix breakage by krh by only calling cairo_destroy on non-null.
Diffstat (limited to 'poppler')
-rw-r--r--poppler/CairoOutputDev.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index fdb8a233..7e83ae5a 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -65,7 +65,9 @@ CairoOutputDev::~CairoOutputDev() {
delete fontEngine;
}
FT_Done_FreeType(ft_lib);
- cairo_destroy (cairo);
+
+ if (cairo)
+ cairo_destroy (cairo);
cairo_pattern_destroy (stroke_pattern);
cairo_pattern_destroy (fill_pattern);
}