After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 399948 - [textoverlay] leaks upstream events if textpad unlinked
[textoverlay] leaks upstream events if textpad unlinked
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.11
Other All
: Normal normal
: 0.10.12
Assigned To: Tim-Philipp Müller
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-23 21:06 UTC by Jens Persson
Modified: 2007-01-24 12:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jens Persson 2007-01-23 21:06:13 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:
Comment 1 Tim-Philipp Müller 2007-01-24 12:50:02 UTC
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