GNOME Bugzilla – Bug 557404
The call stack should use smart pointers
Last modified: 2013-08-11 18:59:53 UTC
That would make memory management more automatic and allow sharing objects more easily. Beware of the following situation : obj->updated.connect (sigc::bind (sigc::mem_fun (this, &Foo::Bar::on_obj_updated), obj); this makes obj store a reference to itself -- it will get released when the Foo::Bar objects gets freed (if it's a sigc::trackable), but will be kept otherwise, which may not be intended.
Is this bug still valid?
Yes it is as far as I know. The fact that there may be threading going on there prevents me from working on it.
I think this bug is obsolete : the call stack does use smart pointers.