Dispose GLib.Values in GetProperty after usage

This commit is contained in:
Sebastian Dröge 2009-05-26 09:48:22 +02:00
parent cdc9fcd45d
commit 3139d5f239

View file

@ -1,6 +1,9 @@
public object this[string property] { public object this[string property] {
get { get {
return GetProperty (property).Val; GLib.Value v = GetProperty (property);
object o = v.Val;
v.Dispose ();
return o;
} }
set { set {
GLib.Value v = new GLib.Value (this, property); GLib.Value v = new GLib.Value (this, property);