From eb11e1d94a976fafa594c25e387a130bef3c1173 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 1 Oct 2025 12:30:59 +0200 Subject: Fixing deconstructor issues --- modules/codec/tests/SConscript | 4 ++-- modules/core/c++/buffer.hpp | 2 +- modules/core/tests/SConscript | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/codec/tests/SConscript b/modules/codec/tests/SConscript index ebaf45f..08a8c71 100644 --- a/modules/codec/tests/SConscript +++ b/modules/codec/tests/SConscript @@ -13,8 +13,8 @@ dir_path = Dir('.').abspath test_cases_env = env.Clone(); test_cases_env.Append(LIBS=['forstio-test']); -# test_cases_env.Append(CCFLAGS=['-fsanitize=address','-g']); -# test_cases_env.Append(LINKFLAGS=['-fsanitize=address']); +test_cases_env.Append(CCFLAGS=['-fsanitize=address','-g']); +test_cases_env.Append(LINKFLAGS=['-fsanitize=address']); test_cases_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) test_cases_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) diff --git a/modules/core/c++/buffer.hpp b/modules/core/c++/buffer.hpp index 8b62131..e551de3 100644 --- a/modules/core/c++/buffer.hpp +++ b/modules/core/c++/buffer.hpp @@ -15,7 +15,7 @@ namespace saw { */ class buffer { public: - ~buffer() = default; + virtual ~buffer() = default; virtual size_t read_position() const = 0; virtual size_t read_composite_length() const = 0; diff --git a/modules/core/tests/SConscript b/modules/core/tests/SConscript index b35f238..2c86827 100644 --- a/modules/core/tests/SConscript +++ b/modules/core/tests/SConscript @@ -13,8 +13,8 @@ dir_path = Dir('.').abspath test_cases_env = env.Clone(); test_cases_env.Append(CCFLAGS=['-g']); -# test_cases_env.Append(CCFLAGS=['-fsanitize=address','-g']); -# test_cases_env.Append(LINKFLAGS=['-fsanitize=address']); +test_cases_env.Append(CCFLAGS=['-fsanitize=address','-g']); +test_cases_env.Append(LINKFLAGS=['-fsanitize=address']); test_cases_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) test_cases_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) -- cgit v1.2.3