git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make xpdf check GfxState nesting
[swftools.git]
/
lib
/
devices
/
record.c
diff --git
a/lib/devices/record.c
b/lib/devices/record.c
index
a4b0859
..
5ea7d1b
100644
(file)
--- a/
lib/devices/record.c
+++ b/
lib/devices/record.c
@@
-415,17
+415,7
@@
static void replay(struct _gfxdevice*dev, gfxdevice_t*out, void*data, int length
unsigned char op = reader_readU8(r);
switch(op) {
case OP_END:
unsigned char op = reader_readU8(r);
switch(op) {
case OP_END:
- r->dealloc(r);
-
- {
- gfxfontlist_t*l = fontlist;
- while(l) {
- l = l->next;
- }
- }
-
- gfxfontlist_free(fontlist, 1);
- return;
+ goto finish;
case OP_SETPARAM: {
msg("<trace> replay: SETPARAM");
char*key;
case OP_SETPARAM: {
msg("<trace> replay: SETPARAM");
char*key;
@@
-557,7
+547,9
@@
static void replay(struct _gfxdevice*dev, gfxdevice_t*out, void*data, int length
}
}
}
}
}
}
- msg("<error> No END token in gfx recording");
+finish:
+ r->dealloc(r);
+ gfxfontlist_free(fontlist, 1);
}
void gfxresult_record_replay(gfxresult_t*result, gfxdevice_t*device)
{
}
void gfxresult_record_replay(gfxresult_t*result, gfxdevice_t*device)
{