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
This commit is contained in:
Stephan Sundermann 2013-10-31 14:47:44 +01:00
parent 6d4fbd5ff1
commit 9ea7669e86

View file

@ -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 ();
}