diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-10-28 01:18:53 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-10-28 01:22:11 +0300 |
commit | eb07ae8fc52378d9b59bcb6a7df8bb022b8b9cc0 (patch) | |
tree | 991c6073c3d60cab4e88fdae43186e49269cc276 | |
parent | 03d6174919657a0e52e65d31fbc4b9a26db5d51e (diff) |
Don't crash under gen
In gtk there is apparently GtkSalMenu which increases
the refcount.
Change-Id: I5c52c7b40d0a854e0007362a32a55f0ffed668c1
-rw-r--r-- | sw/source/uibase/ribbar/workctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx index a03a4d777e26..3e51a781c131 100644 --- a/sw/source/uibase/ribbar/workctrl.cxx +++ b/sw/source/uibase/ribbar/workctrl.cxx @@ -96,7 +96,7 @@ VclPtr<SfxPopupWindow> SwTbxAutoTextCtrl::CreatePopupWindow() sal_uInt16 nIndex = static_cast<sal_uInt16>(100*i); // but insert without extension pPopup->InsertItem( i, sTitle); - PopupMenu* pSub = VclPtr<PopupMenu>::Create(); + VclPtrInstance<PopupMenu> pSub; pSub->SetSelectHdl(aLnk); pPopup->SetPopupMenu(i, pSub); for(sal_uInt16 j = 0; j < nBlockCount; j++) |