Skip to content

Instantly share code, notes, and snippets.

@j0sh
Created January 6, 2013 00:34
Show Gist options
  • Select an option

  • Save j0sh/4464506 to your computer and use it in GitHub Desktop.

Select an option

Save j0sh/4464506 to your computer and use it in GitHub Desktop.
diff --git a/sources/thelib/src/protocols/baseprotocol.cpp b/sources/thelib/src/protocols/baseprotocol.cpp
index b8abc91..4587491 100644
--- a/sources/thelib/src/protocols/baseprotocol.cpp
+++ b/sources/thelib/src/protocols/baseprotocol.cpp
@@ -60,6 +60,8 @@ BaseProtocol::~BaseProtocol() {
_deleteFar,
_deleteNear);
#endif
+ ProtocolManager::UnRegisterProtocol(this);
+
BaseProtocol *pFar = _pFarProtocol;
BaseProtocol *pNear = _pNearProtocol;
@@ -87,7 +89,6 @@ BaseProtocol::~BaseProtocol() {
_deleteFar,
_deleteNear);
#endif
- ProtocolManager::UnRegisterProtocol(this);
}
uint64_t BaseProtocol::GetType() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment