summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-17 12:49:44 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-18 14:22:50 +0200
commit60574660404344974b99ec630b50740c33ee16e5 (patch)
treeeb69820369e9bd640fa5b2264107d56d75d84f1a
parent6a44b8d5d15543a8556e7aff2c9c98cef5d41286 (diff)
eglglessink: Fix memory leak
-rw-r--r--ext/eglgles/gsteglglessink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/eglgles/gsteglglessink.c b/ext/eglgles/gsteglglessink.c
index 0fbe4f462..f47220400 100644
--- a/ext/eglgles/gsteglglessink.c
+++ b/ext/eglgles/gsteglglessink.c
@@ -2046,7 +2046,7 @@ gst_eglglessink_queue_buffer (GstEglGlesSink * eglglessink,
{
GstDataQueueItem *item = g_slice_new0 (GstDataQueueItem);
- item->object = GST_MINI_OBJECT_CAST ((buf ? gst_buffer_ref (buf) : NULL));
+ item->object = GST_MINI_OBJECT_CAST (buf);
item->size = GST_BUFFER_SIZE (buf);
item->duration = GST_BUFFER_DURATION (buf);
item->visible = (buf ? TRUE : FALSE);