From a76c2f06e586d5b17895efb713add798fce2a8e7 Mon Sep 17 00:00:00 2001
From: Patrick Simpson
Date: Tue, 26 Sep 2017 16:51:36 +0200
Subject: [PATCH] Fixed undisposed wrapper in secondary contacts
---
.../Features/SecondaryContacts/FeatureSecondaryContacts.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SecondaryContacts/FeatureSecondaryContacts.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SecondaryContacts/FeatureSecondaryContacts.cs
index d693456..2b1a6a4 100644
--- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SecondaryContacts/FeatureSecondaryContacts.cs
+++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SecondaryContacts/FeatureSecondaryContacts.cs
@@ -126,8 +126,9 @@ namespace Acacia.Features.SecondaryContacts
// Update the icon.
using (IExplorer explorer = ThisAddIn.Instance.GetActiveExplorer())
using (ICommandBars cmdBars = explorer.GetCommandBars())
+ using (IPicture icon = cmdBars.GetMso("ShowContactPage").GetPicture(new Size(16, 16)))
{
- folder.SetCustomIcon(cmdBars.GetMso("ShowContactPage").GetPicture(new Size(16, 16)));
+ folder.SetCustomIcon(icon);
}
// Patch the name