wrappercamerabinsrc: unref request pads

Do not forget to unref output-selector requested pads
This commit is contained in:
Thiago Santos 2014-07-26 12:38:42 -03:00
parent 2bfd106ef6
commit 34b90db967

View file

@ -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;