From a5e9a5eebc10553e4a8b5a154e328ed36cf2a819 Mon Sep 17 00:00:00 2001 From: Stefan Kost <ensonic@users.sf.net> Date: Fri, 26 Jun 2009 18:31:51 +0300 Subject: [PATCH] camerabin: don't leak preview images --- gst/camerabin/gstcamerabin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index da5e949ee4..9faefd11cc 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -1692,6 +1692,7 @@ gst_camerabin_send_preview (GstCameraBin * camera, GstBuffer * buffer) if (prev) { s = gst_structure_new (PREVIEW_MESSAGE_NAME, "buffer", GST_TYPE_BUFFER, prev, NULL); + gst_buffer_unref (prev); msg = gst_message_new_element (GST_OBJECT (camera), s);