Bug 15530 - Leaked user_data in _call_ API
Summary: Leaked user_data in _call_ API
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 03:33 UTC by Xavier Claessens
Modified: 2008-04-30 04:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Xavier Claessens 2008-04-16 03:33:28 UTC
In the generated code for *_call_* if there is no callback or if the interface is not found the destroy func is not called to free user_data so it's leaked.

Passing user_data without callback seems useless, maybe we should add a g_return_if_fail (callback != NULL || user_data == NULL);
Comment 1 Simon McVittie 2008-04-22 03:41:42 UTC
Fixed in my branch.
Comment 2 Simon McVittie 2008-04-30 04:37:16 UTC
Fixed in HEAD.


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.