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:
9b4b807
)
fixed double free in path handling
author
kramm
<kramm>
Tue, 22 Apr 2008 09:29:46 +0000
(09:29 +0000)
committer
kramm
<kramm>
Tue, 22 Apr 2008 09:29:46 +0000
(09:29 +0000)
lib/pdf/BitmapOutputDev.cc
patch
|
blob
|
history
diff --git
a/lib/pdf/BitmapOutputDev.cc
b/lib/pdf/BitmapOutputDev.cc
index
cedf06a
..
e551fd6
100644
(file)
--- a/
lib/pdf/BitmapOutputDev.cc
+++ b/
lib/pdf/BitmapOutputDev.cc
@@
-1274,7
+1274,9
@@
void BitmapOutputDev::beginTransparencyGroup(GfxState *state, double *bbox,
#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207
GfxState*state1 = state->copy();
GfxState*state2 = state->copy();
#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207
GfxState*state1 = state->copy();
GfxState*state2 = state->copy();
+ state1->setPath(0);
state1->setPath(state->getPath()->copy());
state1->setPath(state->getPath()->copy());
+ state2->setPath(0);
state2->setPath(state->getPath()->copy());
#else
GfxState*state1 = state->copy(gTrue);
state2->setPath(state->getPath()->copy());
#else
GfxState*state1 = state->copy(gTrue);
@@
-1292,7
+1294,9
@@
void BitmapOutputDev::endTransparencyGroup(GfxState *state)
#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207
GfxState*state1 = state->copy();
GfxState*state2 = state->copy();
#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207
GfxState*state1 = state->copy();
GfxState*state2 = state->copy();
+ state1->setPath(0);
state1->setPath(state->getPath()->copy());
state1->setPath(state->getPath()->copy());
+ state2->setPath(0);
state2->setPath(state->getPath()->copy());
#else
GfxState*state1 = state->copy(gTrue);
state2->setPath(state->getPath()->copy());
#else
GfxState*state1 = state->copy(gTrue);