git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc4643c
)
fix segfault in case of unimplemented function type.
author
kramm
<kramm>
Sun, 19 May 2002 11:25:00 +0000
(11:25 +0000)
committer
kramm
<kramm>
Sun, 19 May 2002 11:25:00 +0000
(11:25 +0000)
pdf2swf/xpdf/GfxState.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/xpdf/GfxState.cc
b/pdf2swf/xpdf/GfxState.cc
index
1abf9a5
..
b7afdae
100644
(file)
--- a/
pdf2swf/xpdf/GfxState.cc
+++ b/
pdf2swf/xpdf/GfxState.cc
@@
-912,14
+912,15
@@
GfxColorSpace *GfxSeparationColorSpace::parse(Array *arr) {
obj1.free();
func = Function::parse(arr->get(3, &obj1));
obj1.free();
- if (!func->isOk()) {
+ if (!func || !func->isOk()) {
goto err4;
}
cs = new GfxSeparationColorSpace(name, alt, func);
return cs;
err4:
- delete func;
+ if(func)
+ delete func;
delete alt;
err3:
delete name;