Switch OpaqueVal::UnserializeType() to return IntrusivePtr

This commit is contained in:
Jon Siwek 2020-05-18 15:25:46 -07:00
parent 83f1a911d7
commit 43f513ca44
3 changed files with 13 additions and 11 deletions

View file

@ -479,12 +479,12 @@ bool TopkVal::DoUnserialize(const broker::data& data)
auto no_type = caf::get_if<broker::none>(&(*v)[3]);
if ( ! no_type )
{
BroType* t = UnserializeType((*v)[3]);
auto t = UnserializeType((*v)[3]);
if ( ! t )
return false;
Typify(t);
Unref(t);
Typify(t.get());
}
uint64_t i = 0;