changeset 221:8808383fcb94 v2

fixed recursion in Safe.Dispose with IEnumerable
author cin
date Fri, 23 Jun 2017 01:03:42 +0300
parents 42814145d472
children 1ba2127cfcd8
files Implab/Safe.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Implab/Safe.cs	Tue Jun 20 19:45:52 2017 +0300
+++ b/Implab/Safe.cs	Fri Jun 23 01:03:42 2017 +0300
@@ -79,7 +79,7 @@
             if (obj is IDisposable) {
                 Dispose((IDisposable)obj);
             } else if (obj is IEnumerable) {
-                Dispose((IEnumerable)obj);
+                DisposeCollection((IEnumerable)obj);
             }
         }