From b5f68ff592b250452308c9ed6e8f4702c3722290 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Mon, 19 Jun 2023 07:47:56 -0600 Subject: [PATCH] [clib] Switch reactorsurface to SharedCabinet --- src/clib/ctreactor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clib/ctreactor.cpp b/src/clib/ctreactor.cpp index 0bfcf21fdc..f46be783b1 100644 --- a/src/clib/ctreactor.cpp +++ b/src/clib/ctreactor.cpp @@ -24,7 +24,7 @@ typedef Cabinet FuncCabinet; typedef SharedCabinet ThermoCabinet; typedef SharedCabinet KineticsCabinet; typedef SharedCabinet SolutionCabinet; -typedef Cabinet ReactorSurfaceCabinet; +typedef SharedCabinet ReactorSurfaceCabinet; template<> ReactorCabinet* ReactorCabinet::s_storage = 0; template<> NetworkCabinet* NetworkCabinet::s_storage = 0; @@ -599,7 +599,7 @@ extern "C" { int reactorsurface_new(int type) { try { - return ReactorSurfaceCabinet::add(new ReactorSurface()); + return ReactorSurfaceCabinet::add(make_shared()); } catch (...) { return handleAllExceptions(-1, ERR); }