IVGCVSW-3400 Add missing virtual destructors
* Added missing virtual destructors to recently added profiling
interface classes
Change-Id: Id2c4b3bb22ef233b26723d3e578477c59018fbda
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
diff --git a/src/profiling/IBufferWrapper.hpp b/src/profiling/IBufferWrapper.hpp
index 5128521..9c38ab1 100644
--- a/src/profiling/IBufferWrapper.hpp
+++ b/src/profiling/IBufferWrapper.hpp
@@ -14,6 +14,8 @@
class IBufferWrapper
{
public:
+ virtual ~IBufferWrapper() {}
+
virtual unsigned char* Reserve(unsigned int requestedSize, unsigned int& reservedSize) = 0;
virtual void Commit(unsigned int size) = 0;
@@ -25,4 +27,4 @@
} // namespace profiling
-} // namespace armnn
\ No newline at end of file
+} // namespace armnn
diff --git a/src/profiling/IProfilingConnection.hpp b/src/profiling/IProfilingConnection.hpp
index c8387f2..160a4fa 100644
--- a/src/profiling/IProfilingConnection.hpp
+++ b/src/profiling/IProfilingConnection.hpp
@@ -18,6 +18,8 @@
class IProfilingConnection
{
public:
+ virtual ~IProfilingConnection() {}
+
virtual bool IsOpen() = 0;
virtual void Close() = 0;
diff --git a/src/profiling/ISendCounterPacket.hpp b/src/profiling/ISendCounterPacket.hpp
index 7f9e192..5117c5d 100644
--- a/src/profiling/ISendCounterPacket.hpp
+++ b/src/profiling/ISendCounterPacket.hpp
@@ -18,6 +18,8 @@
public:
using IndexValuePairsVector = std::vector<std::pair<uint16_t, uint32_t>>;
+ virtual ~ISendCounterPacket() {}
+
/// Create and write a StreamMetaDataPacket in the buffer
virtual void SendStreamMetaDataPacket() = 0;