From 7ccedbe9e6e3b98f495bc6ec5f1a719fe4eb8c42 Mon Sep 17 00:00:00 2001 From: Patrick Simpson Date: Tue, 7 Feb 2017 10:02:40 +0100 Subject: [PATCH] [KOE-39] More aggressive release of COM objects. --- src/AcaciaZPushPlugin/AcaciaZPushPlugin/Utils/ComRelease.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Utils/ComRelease.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Utils/ComRelease.cs index 7488fb5..f056582 100644 --- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Utils/ComRelease.cs +++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Utils/ComRelease.cs @@ -67,7 +67,7 @@ namespace Acacia.Utils Logger.Instance.TraceExtra(typeof(ComRelease), "Releasing object: {0:X} @ {1}", GetObjAddress(o), new System.Diagnostics.StackTrace()); } - Marshal.ReleaseComObject(o); + Marshal.FinalReleaseComObject(o); } private static long GetObjAddress(object o)