Bluetooth replicant: fix memory leak.

Change-Id: I4587fc9c0d981bafd38e0f517f6ef60a8cae7fec
Reviewed-on: https://review.haiku-os.org/c/1696
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Adrien Destugues 2019-08-06 20:01:19 +02:00 committed by waddlesplash
parent 6a739773fc
commit 95901dc145

View File

@ -184,6 +184,8 @@ DeskbarReplicant::MouseDown(BPoint where)
menu->SetTargetForItems(this); menu->SetTargetForItems(this);
ConvertToScreen(&point); ConvertToScreen(&point);
menu->Go(point, true, true, true); menu->Go(point, true, true, true);
delete menu;
} }