From: Stephan Sundermann Date: Thu, 31 Oct 2013 13:47:44 +0000 (+0100) Subject: Object: Fixed compilation on .NET X-Git-Tag: 1.19.3~483^2~245 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ea7669e86cabfadfae52076aeb66851ba896947;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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 (); }