Dispose GLib.Values after usage to close a memory leak

This commit is contained in:
Sebastian Dröge 2009-04-22 12:35:56 +02:00
parent f7de461101
commit 5278dd6486

View file

@ -285,7 +285,15 @@ namespace Gst {
g_signal_emitv (signal_parameters, query.signal_id, signal_detail_quark, ref return_value);
return (query.return_type != GType.Invalid && query.return_type != GType.None) ? return_value.Val : null;
foreach (GLib.Value v in signal_parameters)
v.Dispose ();
object ret = (query.return_type != GType.Invalid && query.return_type != GType.None) ? return_value.Val : null;
if (ret != null)
return_value.Dispose ();
return ret;
}
[DllImport ("gstreamersharpglue-0.10") ]