summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-12 16:04:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-13 08:32:01 +0200
commit7ba9e99b08b01b4fb869e3153a50f6b53dcca25f (patch)
tree60294e2c803d8de46d281c47124779572d938b5c
parent4d3a7335c6a5f38feac0e10d17e5f5c0f7390f2c (diff)
tdf#119802 LibreOffice crashes when I save multiple times in a row
regression from commit c2452e52f644649723df10e3cd6bbd48d6bafb49 loplugin:useuniqueptr in SfxDispatcher_Impl Change-Id: Ia6e097c72e8571540c9cbd1512aedd85e4c2433e Reviewed-on: https://gerrit.libreoffice.org/60395 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 3778399872ad592b4416e54a154e8bcc02d73a2e) Reviewed-on: https://gerrit.libreoffice.org/60420
-rw-r--r--sfx2/source/control/dispatch.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index d3e403d70e9c..bda805ca4366 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -1956,7 +1956,7 @@ void SfxDispatcher::Lock( bool bLock )
if ( !bLock )
{
for(size_t i = 0; i < xImp->aReqArr.size(); ++i)
- xImp->xPoster->Post(xImp->aReqArr[i].get());
+ xImp->xPoster->Post(xImp->aReqArr[i].release());
xImp->aReqArr.clear();
}
}