From 95901dc145e2104d82c61fb9b38760dd15ec24d1 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 6 Aug 2019 20:01:19 +0200 Subject: [PATCH] Bluetooth replicant: fix memory leak. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4587fc9c0d981bafd38e0f517f6ef60a8cae7fec Reviewed-on: https://review.haiku-os.org/c/1696 Reviewed-by: Jérôme Duval --- src/servers/bluetooth/DeskbarReplicant.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/servers/bluetooth/DeskbarReplicant.cpp b/src/servers/bluetooth/DeskbarReplicant.cpp index ea4881c346..faafee1fe0 100644 --- a/src/servers/bluetooth/DeskbarReplicant.cpp +++ b/src/servers/bluetooth/DeskbarReplicant.cpp @@ -184,6 +184,8 @@ DeskbarReplicant::MouseDown(BPoint where) menu->SetTargetForItems(this); ConvertToScreen(&point); menu->Go(point, true, true, true); + + delete menu; }