star-enclosures-3d

Extract enclosures from 3D geometry
git clone git://git.meso-star.fr/star-enclosures-3d.git
Log | Files | Refs | README | LICENSE

commit e8d332bf208083aa0b1e932599d5efa2b53923dc
parent e678bd17576b90a32031632fc17a2b9d4621cca4
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Mon, 20 Aug 2018 15:21:06 +0200

BugFix : memleak whith some incoherent media setings

Diffstat:
Msrc/senc_scene_analyze.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/senc_scene_analyze.c b/src/senc_scene_analyze.c @@ -412,7 +412,11 @@ extract_connex_components crt_side_id = get_side_from_stack(trgsides, &stack); last_side_id = MMAX(last_side_id, crt_side_id); } - if(*res != RES_OK) break; + if(*res != RES_OK) { + MEM_RM(alloc, cc); + cc = NULL; + break; + } /* Keep track of this new connex component */ cc->side_range.last = last_side_id;