Fix warnings.
authorDean
Mon, 31 Oct 2016 17:30:03 +0100
changeset 1405 cd14f9d6cb61
parent 1404 3ad362c52ad4
child 1406 f2f247f232c6
child 1407 a2b0c1e29f3e
Fix warnings.
Log.cs
MailItemExtensions.cs
ThisAddIn.cs
--- a/Log.cs	Mon Oct 31 17:07:31 2016 +0100
+++ b/Log.cs	Mon Oct 31 17:30:03 2016 +0100
@@ -197,7 +197,6 @@
                         log = logReader.ReadToEnd();
 
                         logReader.Close();
-                        logReader.Dispose();
                     }
                 }
 
--- a/MailItemExtensions.cs	Mon Oct 31 17:07:31 2016 +0100
+++ b/MailItemExtensions.cs	Mon Oct 31 17:30:03 2016 +0100
@@ -897,7 +897,6 @@
                         if (stream != null)
                         {
                             stream.Close();
-                            stream.Dispose();
                             stream = null;
                         }
                     }
--- a/ThisAddIn.cs	Mon Oct 31 17:07:31 2016 +0100
+++ b/ThisAddIn.cs	Mon Oct 31 17:30:03 2016 +0100
@@ -35,7 +35,10 @@
         private Outlook.Folder                          _PEPStoreRootFolder = null;
         private PEPSettings                             _Settings           = null;
 
-        private AdapterCallbacks           adapterCallbacks          = null;
+#if !READER_RELEASE_MODE
+        private AdapterCallbacks adapterCallbacks = null;
+#endif
+
         private bool                       initialized               = false;
         private bool                       isItemSendHandlerEnabled  = true;
         private FormControlOptions.State   lastOptionsState          = null;