[KOE-114] Fixed undisposed wrapper when cancelling modification to private events

This commit is contained in:
Patrick Simpson 2017-06-14 13:14:19 +02:00
parent 644ca2aea8
commit 8b8845e95b
2 changed files with 4 additions and 2 deletions

View File

@ -262,8 +262,10 @@ namespace Acacia.Features.SharedFolders
if (findInspector) if (findInspector)
{ {
// Find and close any inspector // Find and close any inspector
foreach (IInspector inspector in ThisAddIn.Instance.GetInspectors()) using (IInspectors inspectors = ThisAddIn.Instance.GetInspectors())
foreach (IInspector inspector in inspectors)
{ {
using (inspector)
using (IItem inspectItem = inspector.GetCurrentItem()) using (IItem inspectItem = inspector.GetCurrentItem())
{ {
if (appointment.EntryID == inspectItem.EntryID) if (appointment.EntryID == inspectItem.EntryID)

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Acacia.Stubs namespace Acacia.Stubs
{ {
public interface IInspectors : IEnumerable<IInspector> public interface IInspectors : IEnumerable<IInspector>, IComWrapper
{ {
} }
} }