Fix ref counting bug in dummy ID creation code for script docs.

This commit is contained in:
Jon Siwek 2011-10-07 15:05:13 -05:00
parent a9eb4c15a0
commit 58692ef9e0

View file

@ -165,7 +165,7 @@ static ID* create_dummy_id (ID* id, BroType* type)
ID* fake_id = new ID(copy_string(id->Name()), (IDScope) id->Scope(),
is_export);
fake_id->SetType(type);
fake_id->SetType(type->Ref());
if ( id->AsType() )
{