GNOME Bugzilla – Bug 399948
[textoverlay] leaks upstream events if textpad unlinked
Last modified: 2007-01-24 12:50:02 UTC
Please describe the problem: I was getting nasty memory leaks when using the code below: textoverlay = gst.element_factory_make('textoverlay') textoverlay.set_property("text", "my-text") textoverlay.set_property("halignment", 2) textoverlay.set_property("valignment", 2) When I took it away it doesn't leak anymore. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Should be fixed now: 2007-01-24 Tim-Philipp Müller <tim at centricular dot net> * ext/pango/gsttextoverlay.c: (gst_text_overlay_src_event), (gst_text_overlay_text_event): Don't unnecessarily ref (and then leak) upstream events if the text pad is not linked. Fixes #399948. * tests/check/gst-plugins-base.supp: Add suppression for pango on edgy/x86 for textoverlay test. Tested with: $ G_SLICE=always-malloc valgrind --leak-check=yes --trace-children=yes gst-launch-0.10 videotestsrc num-buffers=333 ! textoverlay text="my text" halignment=2 valignment=2 ! xvimagesink