Free all internal signals, else the garbage collector is not able to free the object.
This commit is contained in:
parent
304eefde96
commit
9764260931
1 changed files with 10 additions and 0 deletions
|
@ -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