Bug 19662 - Leaks when using OptionalInterfaceFactory
Summary: Leaks when using OptionalInterfaceFactory
Status: RESOLVED NOTABUG
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-qt (show other bugs)
Version: unspecified
Hardware: All All
: high major
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-20 09:27 UTC by Andre Moreira Magalhaes
Modified: 2009-02-02 10:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Andre Moreira Magalhaes 2009-01-20 09:27:30 UTC
Some classes (such as Account/Connection) uses OptionalInterfaceFactory to get an optional interface. The first time an optional interface is requested it will be cached by OptionalInterfaceFactory, meaning that the returned object cannot be destroyed by the calling, or the cache will be invalidated.
This way the classes using OptionalInterfaceFactory are not deleting the optional interfaces, causing memory leaks.
Comment 1 Olli Salli 2009-02-02 10:10:11 UTC
As discussed over IRC, the OptionalInterfaceFactory destroys all cached proxies when it itself is destroyed. Hence there will be no memory leaks - it is exactly the intent that the proxies will stay around so there is no need to construct them all over and over again.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.