X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/0cdbf9ea69482a979e0fde15e75fef3597ab8b07..022ced16770ece3702b75569cd8d6dd98d47690f:/named_object_list.h?ds=inline

diff --git a/named_object_list.h b/named_object_list.h
index 94d281e..2c691fa 100644
--- a/named_object_list.h
+++ b/named_object_list.h
@@ -24,6 +24,7 @@ protected:
         std::string description;
         creator_base(const std::string& descr): description(descr) { }
         creator_base(const char* descr): description(descr) { }
+        virtual ~creator_base() { }
         virtual Base* operator()() const = 0;
     };
 
@@ -87,6 +88,7 @@ protected:
         std::string description;
         creator_base(const std::string& descr): description(descr) { }
         creator_base(const char* descr): description(descr) { }
+        virtual ~creator_base() { }
         virtual Base* operator()(Arg1, Arg2) const = 0;
     };