diff options
author | Eike Rathke <erack@erack.de> | 2011-08-25 01:59:46 +0200 |
---|---|---|
committer | Eike Rathke <erack@erack.de> | 2011-08-25 02:03:53 +0200 |
commit | 792dee46f2b35a21167af182416803c0b80b517c (patch) | |
tree | 7bc758a0e9c09f26e117b859b7c632eb4753d135 /sc/source/ui/docshell/docfunc.cxx | |
parent | 47994ad7f4a1ba2dc158f8bf3c158bc528fb81d1 (diff) |
crash when modifying a defined name (and other places as well)
In ScRangeName::insert() the underlying
::boost::ptr_set_adapter::insert(p) takes ownerwhip of p and in the case
it can't insert it deletes the object. So, if ScRangeName::insert()
returns false the object where p pointed to is gone.
Adapted various places.
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index 0d531927a4cd..7fd656b41bc6 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -4598,7 +4598,6 @@ void ScDocFunc::CreateOneName( ScRangeName& rList, if (!rList.insert(pData)) { OSL_FAIL("nanu?"); - delete pData; } } } |