git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed segfault
[swftools.git]
/
lib
/
gfxpoly
/
active.c
diff --git
a/lib/gfxpoly/active.c
b/lib/gfxpoly/active.c
index
2904e08
..
b723185
100644
(file)
--- a/
lib/gfxpoly/active.c
+++ b/
lib/gfxpoly/active.c
@@
-1,7
+1,9
@@
#include <stdlib.h>
#include <memory.h>
#include <math.h>
#include <stdlib.h>
#include <memory.h>
#include <math.h>
+#include "../../config.h"
#include "../q.h"
#include "../q.h"
+#include "../types.h"
#include "active.h"
actlist_t* actlist_new()
#include "active.h"
actlist_t* actlist_new()
@@
-503,7
+505,11
@@
void actlist_delete(actlist_t*a, segment_t*s)
} else if(!a->root->rightchild) {
a->root = a->root->leftchild;
} else {
} else if(!a->root->rightchild) {
a->root = a->root->leftchild;
} else {
+#ifdef HAVE_LRAND48
if(lrand48()&1) {
if(lrand48()&1) {
+#else
+ if(((ptroff_t)s)&16) {
+#endif
// free up root->left->right
segment_t*t = a->root->leftchild;
while(t->rightchild) {
// free up root->left->right
segment_t*t = a->root->leftchild;
while(t->rightchild) {