mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
Remove the managed miniobject instances from the hashtable before unreffing
This commit is contained in:
parent
cf9fd6ec9a
commit
e028718bb3
1 changed files with 2 additions and 1 deletions
|
@ -94,13 +94,14 @@ namespace Gst {
|
||||||
if (o.handle == IntPtr.Zero)
|
if (o.handle == IntPtr.Zero)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Objects.Remove (o.handle);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
gst_mini_object_unref (o.handle);
|
gst_mini_object_unref (o.handle);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Console.WriteLine ("Exception while disposing a " + o + " in Gtk#");
|
Console.WriteLine ("Exception while disposing a " + o + " in Gtk#");
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
Objects.Remove (o.handle);
|
|
||||||
o.handle = IntPtr.Zero;
|
o.handle = IntPtr.Zero;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue