mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 18:35:31 +00:00
2002-09-11 Miguel de Icaza <miguel@ximian.com>
* glib/Object.cs (DisposeNative): Call GC.SuppressFinalize, and set the obj to null. svn path=/trunk/gtk-sharp/; revision=7411
This commit is contained in:
parent
32ae593a0e
commit
c9434076c5
|
@ -1,3 +1,8 @@
|
||||||
|
2002-09-11 Miguel de Icaza <miguel@ximian.com>
|
||||||
|
|
||||||
|
* glib/Object.cs (DisposeNative): Call GC.SuppressFinalize, and
|
||||||
|
set the obj to null.
|
||||||
|
|
||||||
2002-09-11 Rachel Hestilow <hestilow@ximian.com>
|
2002-09-11 Rachel Hestilow <hestilow@ximian.com>
|
||||||
|
|
||||||
* glib/Object.cs (Ref): Added.
|
* glib/Object.cs (Ref): Added.
|
||||||
|
|
|
@ -61,7 +61,9 @@ namespace GLib {
|
||||||
if (_obj == IntPtr.Zero)
|
if (_obj == IntPtr.Zero)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
GC.SuppressFinalize (this);
|
||||||
g_object_unref (_obj);
|
g_object_unref (_obj);
|
||||||
|
_obj = IntPtr.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("gobject-2.0")]
|
[DllImport("gobject-2.0")]
|
||||||
|
|
Loading…
Reference in a new issue