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

cid#704596 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: I7746bd26b6760dec4db522938e40a323be9ae4d8
üst 97c4c1cf
......@@ -1052,10 +1052,7 @@ void
MenuSaveInData::SetEntries( SvxEntries* pNewEntries )
{
// delete old menu hierarchy first
if ( pRootEntry != 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