summaryrefslogtreecommitdiff
path: root/include/inspsocket.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-25 20:03:55 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-25 20:03:55 +0000
commitfa2cdd0bb89330cfd9a6c49c4705da2a3cb02834 (patch)
tree558ff9feb41839be63b2a58168dc9623ecd3a283 /include/inspsocket.h
parent5c05313b6e979968d25a57d04da320a0c1be1b6c (diff)
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
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h4
1 files changed, 2 insertions, 2 deletions
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<Module> IOHook;
/** Private send queue. Note that individual strings may be shared
*/
std::deque<std::string> 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; }