mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 00:25:27 +00:00
Free all internal signals, else the garbage collector is not able to free the object.
This commit is contained in:
parent
304eefde96
commit
9764260931
|
@ -73,6 +73,16 @@ namespace GLib {
|
|||
tref.Dispose ();
|
||||
else
|
||||
tref.QueueUnref ();
|
||||
|
||||
// Free all internal signals, else the garbage collector is not
|
||||
// able to free the object.
|
||||
if (signals != null)
|
||||
{
|
||||
foreach (var sig in signals.Keys)
|
||||
signals[sig].Free ();
|
||||
}
|
||||
|
||||
signals = null;
|
||||
}
|
||||
|
||||
public static bool WarnOnFinalize { get; set; }
|
||||
|
|
Loading…
Reference in a new issue