star-enclosures-2d

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

commit ac4d76a73ddec14cd66b25e05f5059899f2a6c8b
parent 3a813880a95bdc1f7c93ba7966d53a0ba97f6218
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Wed, 11 Jul 2018 14:15:42 +0200

BugFix : memleak whith some incoherent media setings

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

diff --git a/src/senc2d_scene_analyze.c b/src/senc2d_scene_analyze.c @@ -408,7 +408,11 @@ extract_connex_components crt_side_id = get_side_from_stack(segsides, &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;