summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstwrappercamerabinsrc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c
index a62627aefc..d237d279f8 100644
--- a/gst/camerabin2/gstwrappercamerabinsrc.c
+++ b/gst/camerabin2/gstwrappercamerabinsrc.c
@@ -80,6 +80,14 @@ gst_wrapper_camera_bin_src_dispose (GObject * object)
{
GstWrapperCameraBinSrc *self = GST_WRAPPER_CAMERA_BIN_SRC (object);
+ if (self->outsel_imgpad) {
+ gst_object_unref (self->outsel_imgpad);
+ self->outsel_imgpad = NULL;
+ }
+ if (self->outsel_vidpad) {
+ gst_object_unref (self->outsel_vidpad);
+ self->outsel_vidpad = NULL;
+ }
if (self->app_vid_src) {
gst_object_unref (self->app_vid_src);
self->app_vid_src = NULL;