From: kramm Date: Wed, 7 Nov 2007 22:30:08 +0000 (+0000) Subject: set previously uninitialized variables X-Git-Tag: buttons-working~500 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=f52e48e2f55dd3a724da00a47552b7edba5f4dfa;p=swftools.git set previously uninitialized variables --- 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; }