From 08a54bee2198b948580537033c8945ca5bd6e7f8 Mon Sep 17 00:00:00 2001 From: Christian Linke Date: Wed, 20 Apr 2016 05:34:04 -0700 Subject: enable deleting of CommandLineSingleton fix log message Signed-off-by: Christian Linke --- AudioManagerUtilities/src/CAmCommandLineSingleton.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'AudioManagerUtilities/src/CAmCommandLineSingleton.cpp') diff --git a/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp b/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp index d2dff35..1170c31 100644 --- a/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp +++ b/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp @@ -44,6 +44,14 @@ TCLAP::CmdLine* CAmCommandLineSingleton::instance() return pSingleCmdLine; } +void CAmCommandLineSingleton::deleteInstance() +{ + if (pSingleCmdLine) + delete pSingleCmdLine; + + pSingleCmdLine=NULL; +} + CAmCommandLineSingleton::~CAmCommandLineSingleton() { // TODO Auto-generated destructor stub } -- cgit v1.2.1