Re: [Re: [Re: gobject weak references]]



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]