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:
RKrom 2012-09-06 09:22:57 +00:00
commit e654c38eb8
6 changed files with 45 additions and 14 deletions

View file

@ -218,8 +218,7 @@ namespace Greenshot.Destinations {
foreach (string inspectorCaption in inspectorCaptions.Keys) {
destinations.Add(new EmailDestination(inspectorCaption, inspectorCaptions[inspectorCaption]));
}
ContextMenuStrip menu = PickerDestination.CreatePickerMenu(false, surface, captureDetails, destinations);
PickerDestination.ShowMenuAtCursor(menu);
PickerDestination.ShowPickerMenu(false, surface, captureDetails, destinations);
return false;
}
}