GNOME Bugzilla – Bug 504786
pad probes leak refs to their data
Last modified: 2008-01-13 17:59:54 UTC
Pad probes leak references to their data. When they are created, the data is ref'ed, but they are not unrefed correctly when disconnect. There are two possibles approaches. 1. Implement a method to pass a closure to the gst core and go like pygobject.. 2. just use the regular pygobject function and do the counter stuff inside the bindings. I picked option 2 because its a lot more simple..
Created attachment 101373 [details] [review] Test case to demonstrate the problem
Created attachment 101374 [details] [review] patch to fix the problem
In the test case.. I left a superfluous print statement
shouldn't this be pushed in before the next release?
yes, confirming as blocker
Thanks, commited 2008-01-13 Olivier Crete <tester@tester.ca> reviewed by: Edward Hervey <edward.hervey@collabora.co.uk> * gst/gstpad.override: * testsuite/test_pad.py: Re-implement wrapping of gst_pad_add_*probe in order to avoid leaks of user-data associated with the probes. Fixes #504786