Re: [Re: [Re: gobject weak references]]
- From: James Henstridge <james daa com au>
- To: Dave Benson <daveb idealab com>
- Cc: Murray Cumming <murrayc usa net>, Alex Larsson <alexl redhat com>, Sven Neumann <sven gimp org>, <gtk-devel-list gnome org>
- Subject: Re: [Re: [Re: gobject weak references]]
- Date: Wed, 19 Sep 2001 09:39:04 +0800 (WST)
On Tue, 18 Sep 2001, Dave Benson wrote:
> worse, if the memory has been freed then its possible
> that its possible that another will get the same memory
> address. so if you're using it as a key in a hash-table,
> you could get a collision if the memory was freed before
> the finalize hooks.
The pointer still points to valid unfreed memory, but it is pointing to an
object in an inconsistent state. So you shouldn't run into these
problems. However, since the object is in an inconsistent state, you
shouldn't be dereferencing it anyway.
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]