mirror of
https://github.com/greenshot/greenshot
synced 2025-07-15 01:23:47 -07:00
Some fixes which should reduce memory usage a bit, also preventing possible memory leaks.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2005 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
aefd9a17a4
commit
e654c38eb8
6 changed files with 45 additions and 14 deletions
|
@ -498,6 +498,15 @@ namespace Greenshot.Drawing {
|
|||
AddContextMenuItems(menu, surface);
|
||||
if (menu.Items.Count > 0) {
|
||||
menu.Show(surface, e.Location);
|
||||
while (true) {
|
||||
if (menu.Visible) {
|
||||
Application.DoEvents();
|
||||
System.Threading.Thread.Sleep(100);
|
||||
} else {
|
||||
menu.Dispose();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue