Skip to content

Commit d0c0635

Browse files
authored
Merge pull request #497 from ldorau/Add_a_virtual_destructor_to_the_provider_base_t_class
Add a virtual destructor to the provider_base_t class
2 parents d25d77b + b2efdb3 commit d0c0635

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/common/provider.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ typedef struct provider_base_t {
9494
[[maybe_unused]] size_t size) noexcept {
9595
return UMF_RESULT_ERROR_UNKNOWN;
9696
}
97+
virtual ~provider_base_t() = default;
9798
} provider_base_t;
9899

99100
umf_memory_provider_ops_t BASE_PROVIDER_OPS =

0 commit comments

Comments
 (0)