set previously uninitialized variables
authorkramm <kramm>
Wed, 7 Nov 2007 22:30:08 +0000 (22:30 +0000)
committerkramm <kramm>
Wed, 7 Nov 2007 22:30:08 +0000 (22:30 +0000)
lib/gfxtools.c
lib/modules/swfbits.c
lib/modules/swftext.c

index dd8d2b7..f34bcf4 100644 (file)
@@ -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;
index a024835..5327d68 100644 (file)
@@ -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;
 }
index b559382..24bde3c 100644 (file)
@@ -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;
 }