Resolves: tdf#101221 VclPtr: funkiness with PopupMenu dtor before dispose

Change-Id: I6f8d980cc14b7f8c7b7ed5ee66a54dfce9d6e09a
This commit is contained in:
Caolán McNamara
2016-07-31 21:29:11 +01:00
parent df0baf4b00
commit e02e103e3e

View File

@@ -927,6 +927,7 @@ void SidebarController::ShowPopupMenu (
Rectangle aBox (rButtonBox);
aBox.Move(mpTabBar->GetPosPixel().X(), 0);
pMenu->Execute(mpParentWindow, aBox, PopupMenuFlags::ExecuteDown);
pMenu.disposeAndClear();
}
VclPtr<PopupMenu> SidebarController::CreatePopupMenu (