Use a static cFSPropDisplayer instead of creating a fresh one each time someone asks. Addresses a valgrind leak that only manifests in interactive db update mode.
This commit is contained in:
parent
b3b74fd76e
commit
d724c07873
|
@ -76,7 +76,12 @@ iFCOSpec* cFSFactory::CreateSpec(const TSTRING& name, iFCOSpecHelper* pHelper) c
|
||||||
|
|
||||||
iFCOPropDisplayer* cFSFactory::CreatePropDisplayer() const
|
iFCOPropDisplayer* cFSFactory::CreatePropDisplayer() const
|
||||||
{
|
{
|
||||||
return new cFSPropDisplayer();
|
static iFCOPropDisplayer* gPropDisplayer = 0;
|
||||||
|
|
||||||
|
if (!gPropDisplayer)
|
||||||
|
gPropDisplayer = new cFSPropDisplayer();
|
||||||
|
|
||||||
|
return gPropDisplayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
iSerRefCountObj::CreateFunc cFSFactory::GetCreateFunc() const
|
iSerRefCountObj::CreateFunc cFSFactory::GetCreateFunc() const
|
||||||
|
|
Loading…
Reference in New Issue