Skip to content

timeoverlay: fix pad leak

Jiri Uncovsky requested to merge jiri.uncovsky/gstreamer:pango_leak into main

When

GST_DEBUG="GST_TRACER:7" GST_TRACERS="leaks(stack-traces-flags=full)" ./gst-launch-1.0 videotestsrc ! timeoverlay ! autovideosink

output is

Freeing pipeline ...
0:00:01.838135394   579 0xaaab0408c790 TRACE             GST_TRACER :0:: object-alive, type-name=(string)GstPad, address=(gpointer)0xaaab040de340, description=(string)<'':video_sink>, ref-count=(uint)1, trace=(string);

** (gst-launch-1.0:579): WARNING **: 10:48:53.084: Leaks detected and logged under GST_DEBUG=GST_TRACER:7

Callstack:

handle_object_created (gstleaks.c:399)
object_created_cb (gstleaks.c:427)
gst_object_constructed (gstobject.c:141)
?? (/usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.6600.8:0xffff97220f68)
g_object_new_valist (/usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.6600.8:0xffff97222cf0)
g_object_new (/usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.6600.8:0xffff97222f6c)
gst_pad_new_from_template (gstpad.c:866)
gst_base_text_overlay_init (gstbasetextoverlay.c:702)
g_type_create_instance (/usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.6600.8:0xffff9723b784)
?? (/usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.6600.8:0xffff97220e84)
g_object_new_with_properties (/usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.6600.8:0xffff97222654)
gst_element_factory_create_with_properties (gstelementfactory.c:439)
gst_element_factory_make_with_properties (gstelementfactory.c:634)
gst_element_factory_make (gstelementfactory.c:759)
priv_gst_parse_yyparse (grammar.y:848)
priv_gst_parse_launch (grammar.y:1214)
gst_parse_launch_full (gstparse.c:347)
gst_parse_launchv_full (gstparse.c:275)
gst_parse_launchv (gstparse.c:227)
main (gst-launch.c:1183)
__libc_start_main (libc-start.c:308)
$x (/usr/local/bin/gst-launch-1.0:0xaaaaaef939e0)
$x (/usr/local/bin/gst-launch-1.0:0xaaaaaef939e0)
;

Merge request reports