diff --git a/dbms/include/DB/AggregateFunctions/IAggregateFunction.h b/dbms/include/DB/AggregateFunctions/IAggregateFunction.h index e737d306acd..e32dde437d7 100644 --- a/dbms/include/DB/AggregateFunctions/IAggregateFunction.h +++ b/dbms/include/DB/AggregateFunctions/IAggregateFunction.h @@ -58,6 +58,7 @@ public: /// Получить результат virtual Field getResult() const = 0; + virtual ~IAggregateFunction() {}; }; diff --git a/dbms/include/DB/Client/ConnectionPool.h b/dbms/include/DB/Client/ConnectionPool.h index 8483450fdf6..fc8a216cfaf 100644 --- a/dbms/include/DB/Client/ConnectionPool.h +++ b/dbms/include/DB/Client/ConnectionPool.h @@ -87,6 +87,7 @@ class IConnectionPool : private boost::noncopyable public: typedef detail::ConnectionPoolEntry Entry; virtual Entry get() = 0; + virtual ~IConnectionPool() {} }; typedef SharedPtr ConnectionPoolPtr;