With shared_ptr protocol is not leakable

This commit is contained in:
Benau 2018-02-18 14:50:06 +08:00
parent e52ab5888c
commit e393e3d4f0

View File

@ -23,7 +23,6 @@
#ifndef PROTOCOL_HPP #ifndef PROTOCOL_HPP
#define PROTOCOL_HPP #define PROTOCOL_HPP
#include "utils/leak_check.hpp"
#include "utils/no_copy.hpp" #include "utils/no_copy.hpp"
#include "utils/types.hpp" #include "utils/types.hpp"
@ -94,7 +93,6 @@ public:
class Protocol : public std::enable_shared_from_this<Protocol>, class Protocol : public std::enable_shared_from_this<Protocol>,
public NoCopy public NoCopy
{ {
LEAK_CHECK()
protected: protected:
/** The type of the protocol. */ /** The type of the protocol. */
ProtocolType m_type; ProtocolType m_type;