2004-02-03 Mike Kestner <mkestner@ximian.com>

* glib/Value.cs : remove double free of ManagedValues. Fixes the
	unfiled (cough, tberman, cough) bug in managed types as tree
	store values.

svn path=/trunk/gtk-sharp/; revision=22745
This commit is contained in:
Mike Kestner 2004-02-03 15:42:58 +00:00
parent d723bf3cef
commit 75f7d1226d
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2004-02-03 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : remove double free of ManagedValues. Fixes the
unfiled (cough, tberman, cough) bug in managed types as tree
store values.
2004-02-03 Mike Kestner <mkestner@ximian.com>
* glib/ManagedValue.cs : null check on Free.

View file

@ -67,10 +67,6 @@ namespace GLib {
public void Dispose () {
if (_val != IntPtr.Zero && needs_dispose) {
IntPtr rawtype = gtksharp_value_get_value_type (_val);
if (rawtype == ManagedValue.GType.Val) {
ManagedValue.Free (g_value_get_boxed (_val));
}
lock (idle_queue) {
idle_queue.Enqueue (_val);