From fbc06c7464fcf9a1c36de215af07d74593fcbe8c Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 27 Mar 2016 16:49:44 +0200 Subject: [PATCH] Add virtual destructors Signed-off-by: Sven Strickroth --- src/Git/Git.h | 1 + src/Git/GitRev.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Git/Git.h b/src/Git/Git.h index 4a634e723..554dcda02 100644 --- a/src/Git/Git.h +++ b/src/Git/Git.h @@ -70,6 +70,7 @@ class CGitCall public: CGitCall(){} CGitCall(CString cmd):m_Cmd(cmd){} + virtual ~CGitCall() {} CString GetCmd()const{return m_Cmd;} void SetCmd(CString cmd){m_Cmd=cmd;} diff --git a/src/Git/GitRev.h b/src/Git/GitRev.h index 040767c0f..cd229b1c9 100644 --- a/src/Git/GitRev.h +++ b/src/Git/GitRev.h @@ -96,7 +96,7 @@ public: return m_Body; } - ~GitRev(void); + virtual ~GitRev(void); enum { -- 2.11.4.GIT