Fix reference counting for lookup_ID() usages.

That function refs the ID before returning it, but callers were never
assuming responsibility for that reference.
This commit is contained in:
Jon Siwek 2014-05-01 15:00:03 -05:00
parent 5b9d190f2c
commit 8b7d5a68b2
7 changed files with 42 additions and 8 deletions

View file

@ -39,7 +39,10 @@ FuncType* EventHandler::FType()
if ( id->Type()->Tag() != TYPE_FUNC )
return 0;
return type = id->Type()->AsFuncType();
type = id->Type()->AsFuncType();
Unref(id);
return type;
}
void EventHandler::SetLocalHandler(Func* f)