diff options
-rw-r--r-- | sc/source/filter/oox/workbookhelper.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx index 7adb76bcb7ef..8c7ffb3de4d8 100644 --- a/sc/source/filter/oox/workbookhelper.cxx +++ b/sc/source/filter/oox/workbookhelper.cxx @@ -370,7 +370,10 @@ ScRangeData* lcl_addNewByNameAndTokens( ScDocument& rDoc, ScRangeName* pNames, c if ( pNames->insert(pNew) ) bDone = true; if (!bDone) + { + delete pNew; throw RuntimeException(); + } return pNew; } |