b = swf_CountBits(y,b);
if (b<2) b=2;
if(b >= 18) {
- if(b >= 18 + 4) {
- /* do not split into more than 16 segments. If the line is *that* long, something's broken */
+ if(b >= 18 + 6) {
+ /* do not split into more than 64 segments. If the line is *that* long, something's broken */
fprintf(stderr, "Warning: Line to %.2f,%.2f is too long\n", (double)x,(double)y);
return -1;
} else {
void swf_Shape2Free(SHAPE2 * s)
{
SHAPELINE*line = s->lines;
+ s->lines = 0;
while(line) {
SHAPELINE*next = line->next;
+ line->next = 0;
rfx_free(line);
line = next;
}
- if(s->linestyles)
+
+ if(s->linestyles) {
rfx_free(s->linestyles);
- if(s->fillstyles)
+ s->linestyles = 0;
+ }
+ if(s->fillstyles) {
rfx_free(s->fillstyles);
- if(s->bbox)
+ s->fillstyles = 0;
+ }
+ if(s->bbox) {
rfx_free(s->bbox);
+ s->bbox = 0;
+ }
}
SHAPE2* swf_Shape2Clone(SHAPE2 * s)