X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Frecord.c;h=a8a0088672b5ea848c97cc726d857c3204b00077;hb=e0a27e1bd83ff2d60745dd6030e0f5ef7ef97b82;hp=f0b70f6e6271c8439b7323aa2d9969d4e7637b93;hpb=018b4ff4529ff084c6c551fa40ff1c2a8be32741;p=swftools.git 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) {