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:
parent
6a739773fc
commit
95901dc145
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user