summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-06-26 18:31:51 +0300
committerStefan Kost <ensonic@users.sf.net>2009-06-26 18:36:25 +0300
commita5e9a5eebc10553e4a8b5a154e328ed36cf2a819 (patch)
tree7866ca17aa2e15ba53a0aeeafc2cda7c54e4597d
parent9a692cf602c55556601f7e302a6907c0d977182a (diff)
downloadgst-plugins-bad-a5e9a5eebc10553e4a8b5a154e328ed36cf2a819.tar.gz
gst-plugins-bad-a5e9a5eebc10553e4a8b5a154e328ed36cf2a819.tar.bz2
gst-plugins-bad-a5e9a5eebc10553e4a8b5a154e328ed36cf2a819.zip
camerabin: don't leak preview images
-rw-r--r--gst/camerabin/gstcamerabin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c
index da5e949e..9faefd11 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);