Initialize the GLib.Value for the property to set

This commit is contained in:
Sebastian Dröge 2009-05-12 15:32:15 +02:00
parent 08ea583412
commit 817c83f7f0
2 changed files with 4 additions and 3 deletions

View file

@ -127,7 +127,6 @@ namespace Gst {
}
g_type_class_unref (class_ptr);
}
}
@ -199,6 +198,5 @@ namespace Gst {
g_type_class_unref (class_ptr);
}
}
}

View file

@ -3,7 +3,10 @@ public object this[string property] {
return GetProperty (property).Val;
}
set {
SetProperty (property, new GLib.Value (value));
GLib.Value v = new GLib.Value (this, property);
v.Val = value;
SetProperty (property, v);
v.Dispose ();
}
}