Fixed intrusive ptr conversion to Obj*

This commit is contained in:
Elad Solomon 2022-09-08 19:57:52 +03:00 committed by Tomer Lev
parent dfd6cbe6b4
commit 44df3087d6

View file

@ -6,6 +6,8 @@
#include <type_traits>
#include <utility>
#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_); }