mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
Dispose GLib.Values after usage to close a memory leak
This commit is contained in:
parent
f7de461101
commit
5278dd6486
1 changed files with 9 additions and 1 deletions
|
@ -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") ]
|
||||
|
|
Loading…
Reference in a new issue