2005-06-02 Mike Kestner <mkestner@novell.com>
* gtk/Object.custom : only connect to Destroyed for managed subclasses and let the wrappers get disposed by the GC. svn path=/trunk/gtk-sharp/; revision=45326
This commit is contained in:
parent
c881d7c5aa
commit
dfa84ee168
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-02 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/Object.custom : only connect to Destroyed for managed subclasses
|
||||
and let the wrappers get disposed by the GC.
|
||||
|
||||
2005-06-01 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/Value.cs : handle enum/flags types in Val.
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
if (obj == null)
|
||||
return;
|
||||
ManagedSubclasses.Remove (obj);
|
||||
obj.Destroyed -= NativeDestroyHandler;
|
||||
obj.Dispose ();
|
||||
}
|
||||
|
||||
|
@ -61,11 +62,11 @@
|
|||
{
|
||||
base.CreateNativeObject (names, vals);
|
||||
ManagedSubclasses [this] = this;
|
||||
Destroyed += NativeDestroyHandler;
|
||||
}
|
||||
|
||||
public override void Dispose ()
|
||||
{
|
||||
Destroyed -= NativeDestroyHandler;
|
||||
base.Dispose ();
|
||||
}
|
||||
|
||||
|
@ -80,7 +81,6 @@
|
|||
|
||||
g_object_ref (value);
|
||||
Sink ();
|
||||
Destroyed += NativeDestroyHandler;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue