diff options
-rw-r--r-- | sc/source/filter/excel/xiname.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xiname.cxx b/sc/source/filter/excel/xiname.cxx index b024dba479ea..eb4c537398fe 100644 --- a/sc/source/filter/excel/xiname.cxx +++ b/sc/source/filter/excel/xiname.cxx @@ -253,6 +253,11 @@ void XclImpName::InsertName(const ScTokenArray* pArray) if (!pLocalNames->insert(pData)) pData = nullptr; } + else + { + delete pData; + pData = nullptr; + } if (GetBiff() == EXC_BIFF8 && pData) { |