Kaydet (Commit) ae8a6885 authored tarafından Noel Grandin's avatar Noel Grandin

cid#704597 dereference after null check

this code dates back to the first commit, if the null check was
valid the dereference should have triggered a bug by now.

Change-Id: If074f68bde6a63083921f687e700321488842364
üst cf2e95aa
......@@ -3986,10 +3986,7 @@ void
ToolbarSaveInData::SetEntries( SvxEntries* pNewEntries )
{
// delete old menu hierarchy first
if ( pRootEntry != NULL && pRootEntry->GetEntries() != NULL )
{
delete pRootEntry->GetEntries();
}
delete pRootEntry->GetEntries();
// now set new menu hierarchy
pRootEntry->SetEntries( pNewEntries );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment