mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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] {
|
public object this[string property] {
|
||||||
get {
|
get {
|
||||||
return GetProperty (property).Val;
|
GLib.Value v = GetProperty (property);
|
||||||
|
object o = v.Val;
|
||||||
|
v.Dispose ();
|
||||||
|
return o;
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
GLib.Value v = new GLib.Value (this, property);
|
GLib.Value v = new GLib.Value (this, property);
|
||||||
|
|
Loading…
Reference in a new issue