From ad8559d91162cab0000704b5d530fa5908dc0756 Mon Sep 17 00:00:00 2001 From: cpubug Date: Tue, 8 Apr 2014 21:01:14 +0400 Subject: [PATCH] fix gcc warning: deleting object of polymorphic class type 'i2p::stream::StreamingDestination' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] --- Identity.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Identity.h b/Identity.h index a4fb8f95..ff35a7db 100644 --- a/Identity.h +++ b/Identity.h @@ -128,6 +128,7 @@ namespace data { public: + virtual ~LocalDestination() {}; virtual const IdentHash& GetIdentHash () const = 0; virtual const uint8_t * GetEncryptionPrivateKey () const = 0; virtual const uint8_t * GetEncryptionPublicKey () const = 0;