From fa2cdd0bb89330cfd9a6c49c4705da2a3cb02834 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 25 Oct 2009 20:03:55 +0000 Subject: Force heap allocation of refcountbase, create usecountbase for non-allocation reference counting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11978 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspsocket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/inspsocket.h') diff --git a/include/inspsocket.h b/include/inspsocket.h index 3e5c75235..8172338ac 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -94,7 +94,7 @@ class CoreExport SocketTimeout : public Timer class CoreExport StreamSocket : public EventHandler { /** Module that handles raw I/O for this socket, or NULL */ - Module *IOHook; + reference IOHook; /** Private send queue. Note that individual strings may be shared */ std::deque sendq; @@ -105,7 +105,7 @@ class CoreExport StreamSocket : public EventHandler protected: std::string recvq; public: - StreamSocket() : IOHook(NULL), sendq_len(0) {} + StreamSocket() : sendq_len(0) {} inline Module* GetIOHook() { return IOHook; } inline void AddIOHook(Module* m) { IOHook = m; } inline void DelIOHook() { IOHook = NULL; } -- cgit v1.2.3