coverity#705811 Dereference before null check

Change-Id: I275739819715f1537e80d621b19a88a6fdbab95b
This commit is contained in:
Caolán McNamara
2014-01-28 13:54:05 +00:00
parent d31a216b1f
commit 40a8fecb58

View File

@@ -565,13 +565,10 @@ namespace pcr
}
// delete the pool
if (_rpPool)
{
_rpPool->ReleaseDefaults(sal_True);
// the "true" means delete the items, too
SfxItemPool::Free(_rpPool);
_rpPool = NULL;
}
_rpPool->ReleaseDefaults(sal_True);
// the "true" means delete the items, too
SfxItemPool::Free(_rpPool);
_rpPool = NULL;
// reset the defaults ptr
_rppDefaults = NULL;