how to backport without breaking ABI?

David Nolden david.nolden.kdevelop at
Sun Feb 13 12:28:35 UTC 2011

You will have to find another solution for this problem anyway.
Normally, when a new navigation context is opened, it is registered at
the parent context using AbstractNavigationContext::registerChild(),
where the child is referenced permanently using a KSharedPtr.

By making the m_previousContext a KSharedPtr too, you create a cyclic
dependency, and thus, all navigation contexts will be leaked!

Normally, everything that would need to be done, is keeping a pointer
to the original navigation context alive as long as the navigation
widget is open. I don't exactly remember how/where this was supposed
to take place though.

Greetings, David

More information about the KDevelop-devel mailing list