From 9ea7669e86cabfadfae52076aeb66851ba896947 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Thu, 31 Oct 2013 14:47:44 +0100 Subject: [PATCH] Object: Fixed compilation on .NET Using variables cannot be modified in .NET but can be in mono so switch to a good old Dispose call here. https://bugzilla.xamarin.com/show_bug.cgi?id=15832#c0 --- sources/custom/Object.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/custom/Object.cs b/sources/custom/Object.cs index 97a37dd..55a960d 100644 --- a/sources/custom/Object.cs +++ b/sources/custom/Object.cs @@ -61,10 +61,10 @@ namespace Gst { if (gtype == null) { throw new Exception ("Could not find a GType for type " + type.FullName); } - using (GLib.Value v = new GLib.Value ((GLib.GType)value.GetType ())) { - v.Val = value; - SetProperty (property, v); - } + GLib.Value v = new GLib.Value ((GLib.GType)value.GetType ()); + v.Val = value; + SetProperty (property, v); + v.Dispose (); } else throw new PropertyNotFoundException (); } -- 2.7.4