Memory leak element textoverlay and timeoverlay with gstreamer 1.28.7

Hi,

I have a pipeline which has a memory leak on windows

After investigation it turned out that both textoverlay and timeoverlay are responsible.

I reduced the issue to next code with same memory consumption, which are Mbytes.

I verified this on Gstreamer 1.28.7 and gstreamer .1.28.6.

Did I missed something or how can I solve this?

for (int i = 0; i < 10000; ++i) {

GstElement* element = gst_element_factory_make(“textoverlay”, nullptr);
if (!element) {
std::cerr << “Could not create textoverlay\n”;
return 1;
}
gst_object_unref(element);
element = nullptr;
}

Cheers, Marc

Hi,

Just to inform possible solution.

The problem is solved when when next is set:

g_setenv(“PANGOCAIRO_BACKEND”, “fontconfig”, TRUE);

Which is weird, because, I never had to set this environment variable.

Cheers,

Marc