summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/iohook.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/iohook.h b/include/iohook.h
index e99316b99..9ca17d77e 100644
--- a/include/iohook.h
+++ b/include/iohook.h
@@ -21,7 +21,7 @@
class StreamSocket;
-class IOHookProvider : public ServiceProvider
+class IOHookProvider : public refcountbase, public ServiceProvider
{
const bool middlehook;
@@ -69,7 +69,7 @@ class IOHook : public classbase
/** The IOHookProvider for this hook, contains information about the hook,
* such as the module providing it and the hook type.
*/
- IOHookProvider* const prov;
+ reference<IOHookProvider> prov;
/** Constructor
* @param provider IOHookProvider that creates this object