camerabin: Do not forget to unref the ffmpegcolorspace

Do not leak the ffmpegcolorspace by unrefing it at dispose
This commit is contained in:
Thiago Santos 2011-04-14 20:39:38 -03:00
parent cee2bc7aa0
commit 19bd1e6d55

View file

@ -195,6 +195,12 @@ gst_camerabin_image_dispose (GstCameraBinImage * img)
img->enc = NULL; img->enc = NULL;
} }
if (img->csp) {
GST_LOG_OBJECT (img, "disposing %s with refcount %d",
GST_ELEMENT_NAME (img->enc), GST_OBJECT_REFCOUNT_VALUE (img->csp));
gst_object_unref (img->csp);
img->csp = NULL;
}
/* Note: if imagebin was never set to READY state the /* Note: if imagebin was never set to READY state the
ownership of elements created by application were never ownership of elements created by application were never