One more modification of singleton (ability to destroy object)
diff --git a/ccnx/sync-app-socket.cc b/ccnx/sync-app-socket.cc
index 3da5402..e0b76de 100644
--- a/ccnx/sync-app-socket.cc
+++ b/ccnx/sync-app-socket.cc
@@ -39,6 +39,7 @@
SyncAppSocket::~SyncAppSocket()
{
+ CcnxWrapper::Destroy ();
}
bool
diff --git a/ccnx/sync-ccnx-wrapper.cc b/ccnx/sync-ccnx-wrapper.cc
index ba7e973..4759903 100644
--- a/ccnx/sync-ccnx-wrapper.cc
+++ b/ccnx/sync-ccnx-wrapper.cc
@@ -32,6 +32,7 @@
typedef boost::error_info<struct tag_errmsg, std::string> errmsg_info_str;
typedef boost::error_info<struct tag_errmsg, int> errmsg_info_int;
+
using namespace std;
using namespace boost;
@@ -39,6 +40,8 @@
namespace Sync {
+boost::shared_ptr<CcnxWrapper> CcnxWrapper::s_wrapper;
+
#ifdef _DEBUG_WRAPPER_
CcnxWrapper::CcnxWrapper(char c)
#else