Re: Memory leak of RefPtr?



On 8/25/06, Lieven <lieven quasar3d nl> wrote:
Actually, it's rather easy to have memory leaks with RefPtrs, all you need
is a circular reference, and the ref counting won't work any more.

Can you exemplify this a little?  By circular reference you must be meaning
something internal to glib rather than the reference counting mechanism
used by RefPtr itself.  So, if you only use RefPtr or, for that matter, any other
smart pointer, then OF COURSE it's NOT possible to have memory leaks.


Regards,

Nickolai


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]