pango: Remove extra pango_attr_list_copy() from basetextoverlay
authorJan Schmidt <thaytan@noraisin.net>
Thu, 7 Feb 2013 12:06:16 +0000 (23:06 +1100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 7 Feb 2013 12:06:57 +0000 (23:06 +1100)
Fixes a per-buffer memory leak of the attribute list.

ext/pango/gstbasetextoverlay.c

index 6a12ee6..1667de6 100644 (file)
@@ -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);