From f52e48e2f55dd3a724da00a47552b7edba5f4dfa Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 7 Nov 2007 22:30:08 +0000 Subject: [PATCH] set previously uninitialized variables --- lib/gfxtools.c | 1 + lib/modules/swfbits.c | 1 + lib/modules/swftext.c | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/gfxtools.c b/lib/gfxtools.c index dd8d2b7..f34bcf4 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -44,6 +44,7 @@ static void linedraw_moveTo(gfxdrawer_t*d, gfxcoord_t x, gfxcoord_t y) return; } + l->sx = l->sy = 0; d->x = l->x = x; d->y = l->y = y; l->next = 0; diff --git a/lib/modules/swfbits.c b/lib/modules/swfbits.c index a024835..5327d68 100644 --- a/lib/modules/swfbits.c +++ b/lib/modules/swfbits.c @@ -270,6 +270,7 @@ int swf_SetJPEGBitsFinish(JPEGBITS * jpegbits) if (!jpeg) return -1; jpeg_finish_compress(&jpeg->cinfo); + jpeg_destroy_compress(&jpeg->cinfo); rfx_free(jpeg); return 0; } diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index b559382..24bde3c 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -815,6 +815,7 @@ int swf_FontInitUsage(SWFFONT * f) } f->use = rfx_alloc(sizeof(FONTUSAGE)); f->use->is_reduced = 0; + f->use->used_glyphs = 0; f->use->chars = rfx_calloc(sizeof(f->use->chars[0]) * f->numchars); return 0; } -- 1.7.10.4