commit 9488530875431afbe2f9f8d260896741b3ba2538
parent ceeb6fbd3b03e0f196f53ef98a18ab5624c80392
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 18 Jan 2019 10:08:06 +0100
Fix the release of the s2d_shape
On release, un-register the shape identifier against the s2d_device.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -38,7 +38,7 @@ option(NO_TEST "Disable the test" OFF)
################################################################################
find_package(Embree 3 REQUIRED)
find_package(RCMake 0.2.2 REQUIRED)
-find_package(RSys 0.6.0 REQUIRED)
+find_package(RSys 0.6 REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${RCMAKE_SOURCE_DIR})
include(rcmake)
diff --git a/src/s2d_shape.c b/src/s2d_shape.c
@@ -49,6 +49,7 @@ shape_release(ref_T* ref)
/* The shape should not be attached */
ASSERT(is_list_empty(&shape->scene_attachment));
line_segments_ref_put(shape->lines);
+ flist_name_del(&dev->names, shape->id);
MEM_RM(dev->allocator, shape);
S2D(device_ref_put(dev));
}