diff options
author | Franz Zotter <fzotter@users.sourceforge.net> | 2012-08-29 07:31:50 +0000 |
---|---|---|
committer | Franz Zotter <fzotter@users.sourceforge.net> | 2012-08-29 07:31:50 +0000 |
commit | eada6ea99f528d88a716738c3ea0adc0265f4416 (patch) | |
tree | 6cc8f1c65c945ebe3cfcadfee5696f54d5356c4d /src/mtx_qhull | |
parent | 291c783983b64f4b0ae4f6f67a016233193efa8c (diff) |
oops, corrected a bug
svn path=/trunk/externals/iem/iemmatrix/; revision=16184
Diffstat (limited to 'src/mtx_qhull')
-rw-r--r-- | src/mtx_qhull/list.c | 2 | ||||
-rw-r--r-- | src/mtx_qhull/zhull.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mtx_qhull/list.c b/src/mtx_qhull/list.c index cf2b797..754516f 100644 --- a/src/mtx_qhull/list.c +++ b/src/mtx_qhull/list.c @@ -224,7 +224,7 @@ void appendListToList(list_t *list1, const list_t list2) { index_t i,j; const size_t siz_old = getLength(*list1); reallocateList(list1, getLength(*list1) + getLength(list2)); - for (i=siz_old, j=0; i<getLength(*list1); i++, j++) + for (i=siz_old, j=0; i<getLength(*list1); i++, j++) setEntry(*list1,i,getEntry(list2,j)); } diff --git a/src/mtx_qhull/zhull.c b/src/mtx_qhull/zhull.c index 0c4409e..7832f39 100644 --- a/src/mtx_qhull/zhull.c +++ b/src/mtx_qhull/zhull.c @@ -176,6 +176,7 @@ void freeZhull(zhull_t *zh) { freeFacets(zh); freeList(&(zh->facets_with_insidepoints)); freeList(&(zh->facets_with_outsidepoints)); + freeList(&(zh->used_pts)); freePoints(&(zh->pts)); } } @@ -206,6 +207,7 @@ zhull_t zhullInitPoints(const float *x, const float *y, zh.facets=emptyList(); zh.facets_with_outsidepoints=emptyList(); zh.facets_with_insidepoints=emptyList(); + zh.used_pts=emptyList(); return zh; } |