Re: Memory leak of RefPtr?
- From: "Nickolai Dobrynin" <ndobrynin gmail com>
- To: Lieven <lieven quasar3d nl>
- Cc: gtkmm-list gnome org
- Subject: Re: Memory leak of RefPtr?
- Date: Fri, 25 Aug 2006 09:40:05 -0500
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]