mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-03 16:55:42 +00:00
Merge pull request #74 from GSharpKit/memory
Free all internal signals, else the garbage collector is not able to free the object.
This commit is contained in:
commit
d1a2124238
|
@ -73,6 +73,16 @@ namespace GLib {
|
||||||
tref.Dispose ();
|
tref.Dispose ();
|
||||||
else
|
else
|
||||||
tref.QueueUnref ();
|
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; }
|
public static bool WarnOnFinalize { get; set; }
|
||||||
|
|
Loading…
Reference in a new issue