Lieven wrote:
> > Briefly: it is impossible to create a memory leak with RefPtr as long
> > as you use pointers created by Gtkmm and don't create your own from
> > raw pointers.  (Creating by copy constructor from other RefPtr's is
> > OK.)
> 
> 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.

Mmm, you are probably right.  However, it is impossible (or a bug) with
standard GTK objects.  If you are writing your own, make sure they don't
reference each other.  (And it's not quite easy, but yeah, possible.)

Paul
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to