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:
parent
644ca2aea8
commit
8b8845e95b
@ -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)
|
||||
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Acacia.Stubs
|
||||
{
|
||||
public interface IInspectors : IEnumerable<IInspector>
|
||||
public interface IInspectors : IEnumerable<IInspector>, IComWrapper
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user