sc/source/ui/docshell/dbdocfun.cxx | 1 - 1 file changed, 1 deletion(-)
New commits: commit d51e7581d90d55b5fe9a0f175d3cbee32de51721 Author: Jens Carl <j.car...@gmx.de> Date: Fri Dec 8 09:09:39 2017 +0000 Fix segfault when ScDBDocFunc::AddDBRange is called ... multiple time with same name. ScDBCollection::NamedDBs::insert() use an unique_ptr to hold ScDBData* and if the insert isn't a success we don't have clean up with delete. Change-Id: I9b24834ea2e2dfd67b07438e6c4789ad0c01b888 Reviewed-on: https://gerrit.libreoffice.org/46075 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index 0d424c08282f..02090556c614 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -96,7 +96,6 @@ bool ScDBDocFunc::AddDBRange( const OUString& rName, const ScRange& rRange ) if (!bOk) { - delete pNew; delete pUndoColl; return false; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits