[corlib] Fixes build with old UnmanagedMemoryStream
[mono.git] / mcs / class / corlib / System.Reflection / Assembly.cs
index 4e10838b10386e13bcb6475ed092b4aececc5700..c3bb5a3fbf10cd6c2983d638f4e374d6bec8f2ed 100644 (file)
@@ -70,7 +70,7 @@ namespace System.Reflection {
 
                        protected override void Dispose (bool disposing)
                        {
-                               if (_isOpen) {
+                               if (!closed) {
                                        /* 
                                         * The returned pointer points inside metadata, so
                                         * we have to increase the refcount of the module, and decrease