From c7329e9301a3326cb2a388e8feb8f3a4f55ba223 Mon Sep 17 00:00:00 2001 From: metalbass Date: Thu, 25 Jul 2013 12:54:51 +0200 Subject: [PATCH 1/2] Added virtual destructors to some interfaces to fix issue 3095 --- extensions/CCArmature/external_tool/sigslot.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extensions/CCArmature/external_tool/sigslot.h b/extensions/CCArmature/external_tool/sigslot.h index 3513a6f857..3f2ccf5da6 100644 --- a/extensions/CCArmature/external_tool/sigslot.h +++ b/extensions/CCArmature/external_tool/sigslot.h @@ -301,6 +301,8 @@ namespace sigslot { class _connection_base0 { public: + virtual ~_connection_base0() { } + virtual has_slots* getdest() const = 0; virtual void emit() = 0; virtual _connection_base0* clone() = 0; @@ -386,6 +388,8 @@ namespace sigslot { class _connection_base7 { public: + virtual ~_connection_base7() { } + virtual has_slots* getdest() const = 0; virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type, arg6_type, arg7_type) = 0; @@ -400,6 +404,8 @@ namespace sigslot { class _connection_base8 { public: + virutal ~_connection_base8() { } + virtual has_slots* getdest() const = 0; virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type, arg6_type, arg7_type, arg8_type) = 0; @@ -413,6 +419,8 @@ namespace sigslot { class _signal_base : public mt_policy { public: + virtual ~_signal_base() { } + virtual void slot_disconnect(has_slots* pslot) = 0; virtual void slot_duplicate(const has_slots* poldslot, has_slots* pnewslot) = 0; }; From 2982a42fbff62163cc3bd3cae35aeff00dea142a Mon Sep 17 00:00:00 2001 From: metalbass Date: Thu, 25 Jul 2013 13:03:40 +0200 Subject: [PATCH 2/2] Fixed typo. virutal -> virtual --- extensions/CCArmature/external_tool/sigslot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/CCArmature/external_tool/sigslot.h b/extensions/CCArmature/external_tool/sigslot.h index 3f2ccf5da6..ee6ea813b9 100644 --- a/extensions/CCArmature/external_tool/sigslot.h +++ b/extensions/CCArmature/external_tool/sigslot.h @@ -404,7 +404,7 @@ namespace sigslot { class _connection_base8 { public: - virutal ~_connection_base8() { } + virtual ~_connection_base8() { } virtual has_slots* getdest() const = 0; virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type,