diff --git a/include/chaiscript/dispatchkit/type_conversions.hpp b/include/chaiscript/dispatchkit/type_conversions.hpp index fa33ae66..832578ff 100644 --- a/include/chaiscript/dispatchkit/type_conversions.hpp +++ b/include/chaiscript/dispatchkit/type_conversions.hpp @@ -500,8 +500,8 @@ namespace chaiscript std::set> m_conversions; std::set m_convertableTypes; std::atomic_size_t m_num_types; - mutable chaiscript::detail::threading::Thread_Storage> m_thread_cache{}; - mutable chaiscript::detail::threading::Thread_Storage m_conversion_saves{}; + mutable chaiscript::detail::threading::Thread_Storage> m_thread_cache; + mutable chaiscript::detail::threading::Thread_Storage m_conversion_saves; }; class Type_Conversions_State diff --git a/include/chaiscript/language/chaiscript_posix.hpp b/include/chaiscript/language/chaiscript_posix.hpp index 5b0a423a..34c0c2a0 100644 --- a/include/chaiscript/language/chaiscript_posix.hpp +++ b/include/chaiscript/language/chaiscript_posix.hpp @@ -30,7 +30,12 @@ namespace chaiscript DLModule(const DLModule &) = delete; DLModule &operator=(const DLModule &) = delete; - ~DLModule() = default; + ~DLModule() + { + + dlclose(m_data); + + }; void *m_data{}; }; @@ -57,7 +62,7 @@ namespace chaiscript } DLModule m_dlmodule; - DLSym m_func{}; + DLSym m_func; ModulePtr m_moduleptr{}; }; diff --git a/src/test_module.cpp b/src/test_module.cpp index dcb3e24e..fd51624f 100644 --- a/src/test_module.cpp +++ b/src/test_module.cpp @@ -77,8 +77,7 @@ int to_int(TestEnum t) class TestDerivedType : public TestBaseType { - ; - public: +public: virtual ~TestDerivedType() = default; TestDerivedType(const TestDerivedType &) = default; TestDerivedType() = default;