summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-04-22 10:08:08 +0200
committerBenjamin Otte <otte@redhat.com>2010-04-22 10:08:08 +0200
commita3b720985bc64e8e1238613936914db91f99c2dc (patch)
treeb6d69a80193f2a632b955243c94ad56b09bec7e6
parent7d78a90258ec20a7804bb13a9745fb4146dc558b (diff)
memleak: Don't leak each and every surface
That's a huge memleak, well hidden by the fact that we only allocate memory on the GPU these days. Thanks to Filippo Argiolas for spotting this.
-rw-r--r--gst-libs/gst/cairo/gstcairobuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/cairo/gstcairobuffer.c b/gst-libs/gst/cairo/gstcairobuffer.c
index 0d8df7b..786e354 100644
--- a/gst-libs/gst/cairo/gstcairobuffer.c
+++ b/gst-libs/gst/cairo/gstcairobuffer.c
@@ -63,6 +63,7 @@ G_DEFINE_TYPE (GstCairoBuffer, gst_cairo_buffer, GST_TYPE_BUFFER)
GstCairoBuffer *cbuffer = GST_CAIRO_BUFFER (object);
gst_cairo_format_free (cbuffer->format);
+ cairo_surface_destroy (cbuffer->surface);
GST_MINI_OBJECT_CLASS (gst_cairo_buffer_parent_class)->finalize (object);
}