From 2528baf2c2c5deb4b4b88b8d2b73004e6e1c2a1d Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 7 Feb 2013 23:06:16 +1100 Subject: [PATCH] pango: Remove extra pango_attr_list_copy() from basetextoverlay Fixes a per-buffer memory leak of the attribute list. --- ext/pango/gstbasetextoverlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c index 6a12ee6c1c..1667de6501 100644 --- a/ext/pango/gstbasetextoverlay.c +++ b/ext/pango/gstbasetextoverlay.c @@ -1344,7 +1344,7 @@ gst_base_text_overlay_render_pangocairo (GstBaseTextOverlay * overlay, origin_attr = pango_attr_list_ref (pango_layout_get_attributes (overlay->layout)); filtered_attr = - pango_attr_list_filter (pango_attr_list_copy (origin_attr), + pango_attr_list_filter (origin_attr, gst_text_overlay_filter_foreground_attr, NULL); cairo_save (cr);