star-3d

Surface structuring for efficient 3D geometric queries
git clone git://git.meso-star.fr/star-3d.git
Log | Files | Refs | README | LICENSE

commit 7942343bd4ab2995f1673e0b7e6f9fd8e94f8a54
parent 150fd2b313a60479d8357d69f77fcccdbd41aea9
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 27 Jul 2016 10:22:50 +0200

Fix memory leaks on scene release

The shapes attached to the scene was not detached priorly to the scene
destruction.

Diffstat:
Msrc/s3d_scene.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/s3d_scene.c b/src/s3d_scene.c @@ -56,6 +56,7 @@ scene_release(ref_T* ref) LIST_FOR_EACH_SAFE(node, tmp, &scn->sessions) { session_destroy(CONTAINER_OF(node, struct s3d_session, node)); } + S3D(scene_clear(scn)); htable_shape_release(&scn->shapes); MEM_RM(dev->allocator, scn); S3D(device_ref_put(dev));