From 3139d5f239526acbe0c5f1329f09be0dd1e8caf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 26 May 2009 09:48:22 +0200 Subject: [PATCH] Dispose GLib.Values in GetProperty after usage --- gstreamer-sharp/Object.custom | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);