From e0a702738ce558dd303389b345ec5349f39a5ccf Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 2 Dec 2008 17:09:27 +0000 Subject: [PATCH] fixed a segfault --- lib/devices/record.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/devices/record.c b/lib/devices/record.c index f0b70f6..a8a0088 100644 --- a/lib/devices/record.c +++ b/lib/devices/record.c @@ -549,7 +549,11 @@ static void replay(struct _gfxdevice*dev, gfxdevice_t*out, void*data, int length } finish: r->dealloc(r); - gfxfontlist_free(fontlist, 1); + /* problem: if we just replayed into a device which stores the + font for later use (the record device itself is a nice example), + then we can't free it yet */ + //gfxfontlist_free(fontlist, 1); + gfxfontlist_free(fontlist, 0); } void gfxresult_record_replay(gfxresult_t*result, gfxdevice_t*device) { -- 1.7.10.4