Updated with Xamarin copyrights
[mono.git] / mcs / mcs / codegen.cs
index e08a5aeb1a56c6c5b8fa54790ce879fff241248a..142f9409343c47bb26479f1702874ca3b3c8771d 100644 (file)
@@ -7,6 +7,7 @@
 //
 // Copyright 2001, 2002, 2003 Ximian, Inc.
 // Copyright 2004 Novell, Inc.
+// Copyright 2011 Xamarin Inc
 //
 
 using System;
@@ -975,7 +976,6 @@ namespace Mono.CSharp
                                        instance.Emit (ec);
                                        temp.Store (ec);
                                        temp.AddressOf (ec, AddressOp.Load);
-                                       temp.Release (ec);
                                }
 
                                return ReferenceContainer.MakeType (ec.Module, instance_type);