Remove redundant checks for NULL before calling delete

This commit is contained in:
Paul Cornett
2020-02-02 23:51:39 -08:00
parent 05183b7099
commit 0ca45d1a59
23 changed files with 39 additions and 75 deletions

View File

@@ -757,8 +757,7 @@ TAG_HANDLER_BEGIN(IMG, "IMG,MAP,AREA")
cel->SetId(tag.GetParam(wxT("id"))); // may be empty
cel->SetAlt(tag.GetParam(wxT("alt")));
m_WParser->GetContainer()->InsertCell(cel);
if (str)
delete str;
delete str;
}
}
if (tag.GetName() == wxT("MAP"))