diff --git a/src/kits/tracker/InfoWindow.cpp b/src/kits/tracker/InfoWindow.cpp index 8e74c68f9f..6673e0cd7e 100644 --- a/src/kits/tracker/InfoWindow.cpp +++ b/src/kits/tracker/InfoWindow.cpp @@ -1242,8 +1242,8 @@ AttributeView::MouseDown(BPoint point) if (((modifiers() & B_CONTROL_KEY) != 0) || (buttons & B_SECONDARY_MOUSE_BUTTON) != 0) { // Show contextual menu BPopUpMenu *contextMenu = new BPopUpMenu("FileContext", false, false); - BuildContextMenu(contextMenu); if (contextMenu) { + BuildContextMenu(contextMenu); contextMenu->SetAsyncAutoDestruct(true); contextMenu->Go(ConvertToScreen(point), true, true, ConvertToScreen(fIconRect)); }