mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
camerabin: Do not forget to unref the ffmpegcolorspace
Do not leak the ffmpegcolorspace by unrefing it at dispose
This commit is contained in:
parent
cee2bc7aa0
commit
19bd1e6d55
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue