diff --git a/gstreamer-sharp/Object.custom b/gstreamer-sharp/Object.custom index 94ddcc455e..6af70574c6 100644 --- a/gstreamer-sharp/Object.custom +++ b/gstreamer-sharp/Object.custom @@ -1,6 +1,9 @@ public object this[string property] { get { - return GetProperty (property).Val; + GLib.Value v = GetProperty (property); + object o = v.Val; + v.Dispose (); + return o; } set { GLib.Value v = new GLib.Value (this, property);