Hi,
I added the release function of the tapiMgr
Index:
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXcallLib/src/tapi/sipXtapi.cpp
===================================================================
---
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXcallLib/src/tapi/sipXtapi.cpp
(revision 9483)
+++
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXcallLib/src/tapi/sipXtapi.cpp
(working copy)
@@ -834,7 +844,9 @@
// failure to do so could cause a hang, at least it does using the
VoiceEngine media adapter
sipxDestroyMediaFactoryFactory() ;
}
-
+ // release the tapiMgr
+ TapiMgr::releaseInstance();
return rc ;
}
/****************************************************************************
Index:
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXtackLib/src/net/TapiMgr.cpp
===================================================================
---
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXtackLib/src/net/TapiMgr.cpp
(revision 9483)
+++
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXtackLib/src/net/TapiMgr.cpp
(working copy)
@@ -28,6 +28,7 @@
// destructor - private
TapiMgr::~TapiMgr()
{
+
}
// static accessor for the singleton instance
@@ -40,6 +41,15 @@
return *(TapiMgr::spTapiMgr);
}
+// static accessor for the singleton instance
+void TapiMgr::releaseInstance()
+{
+ if (TapiMgr::spTapiMgr != 0)
+ {
+ delete TapiMgr::spTapiMgr;
+ }
+}
+
// setting the Call event callback pointer
void TapiMgr::setTapiCallCallback(sipxCallEventCallbackFn fp)
{
Index:
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXtackLib/include/net/TapiMgr.h
===================================================================
---
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXtackLib/include/net/TapiMgr.h
(revision 9483)
+++
D:/TEMP/SIPXTapiPreCompliledRelease-Debug_21-feb/SIPXTapiPreCompliledRelease-Debug/sipXtackLib/include/net/TapiMgr.h
(working copy)
@@ -42,6 +42,10 @@
*/
static TapiMgr& getInstance();
+ /**
+ * Release the allocated memory
+ */
+ static void releaseInstance();
/**
* Sets the callback function pointer for all Events (to be fired to the
sipXtapi layer)
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/