1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

[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)
{
// 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())
{
if (appointment.EntryID == inspectItem.EntryID)

View File

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