summaryrefslogtreecommitdiff
path: root/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp')
-rw-r--r--AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp b/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp
index 6e0cb90..e756c19 100644
--- a/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp
+++ b/AudioManagerUtilities/src/CAmCommonAPIWrapper.cpp
@@ -80,6 +80,17 @@ CAmCommonAPIWrapper::~CAmCommonAPIWrapper()
mContext.reset();
mpSocketHandler = NULL;
mWatchToCheck = NULL;
+ try
+ {
+ if (pSingleCommonAPIInstance!=NULL)
+ delete pSingleCommonAPIInstance;
+
+ pSingleCommonAPIInstance=NULL;
+ }
+ catch(...)
+ {
+ logError(__PRETTY_FUNCTION__,"error while deleting CAPIWrapper instance");
+ }
}
CAmCommonAPIWrapper* CAmCommonAPIWrapper::instantiateOnce(CAmSocketHandler* socketHandler, const std::string & applicationName)