Kaydet (Commit) b0618c49 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1437410 Dereference after null check

Change-Id: Icf67be4419d1eeb5ef92d709d6453e6651b15723
Reviewed-on: https://gerrit.libreoffice.org/56119Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 43fba490
......@@ -89,9 +89,11 @@ SwTableFormatCmp::SwTableFormatCmp( SwFrameFormat *pO, SwFrameFormat *pN, sal_In
SwTableFormatCmp::~SwTableFormatCmp()
{
if (pOld)
{
pOld->Remove(this);
if (!pOld->HasWriterListeners())
delete pOld;
if (!pOld->HasWriterListeners())
delete pOld;
}
}
// static
......
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