1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Merge pull request #1763 from kallisto56/master

Fixed memory leak of temporary tab
This commit is contained in:
Brian Fiete 2022-11-30 14:55:02 -08:00 committed by GitHub
commit 15dc0f4687
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6355,6 +6355,12 @@ namespace IDE
public override void MouseDown(float x, float y, int32 btn, int32 btnCount)
{
if ((mIsRightTab) && (btn == 0) && (btnCount > 1))
{
IDEApp.sApp.MakeTabPermanent(this);
return;
}
base.MouseDown(x, y, btn, btnCount);
if (btn == 1)
@ -6420,11 +6426,6 @@ namespace IDE
else
delete menu;
}
if ((mIsRightTab) && (btn == 0) && (btnCount > 1))
{
IDEApp.sApp.MakeTabPermanent(this);
}
}
public override void Update()