mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-27 07:24:51 +00:00
Dispose GLib.Values in GetProperty after usage
This commit is contained in:
parent
cdc9fcd45d
commit
3139d5f239
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue