diff --git a/src/IntrusivePtr.h b/src/IntrusivePtr.h index 93efcc0a71..2d8767cb0d 100644 --- a/src/IntrusivePtr.h +++ b/src/IntrusivePtr.h @@ -6,6 +6,8 @@ #include #include +#include "Obj.h" + namespace zeek { @@ -111,7 +113,7 @@ public: ~IntrusivePtr() { if ( ptr_ ) - Unref(ptr_); + Unref((zeek::Obj*)ptr_); } void swap(IntrusivePtr& other) noexcept { std::swap(ptr_, other.ptr_); }