From 60af0eb1a96156fe6f4a8aa496963f51e5cb806c Mon Sep 17 00:00:00 2001 From: Hyoung Joo Ahn Date: Thu, 25 Jun 2020 20:37:02 +0900 Subject: [PATCH] [Repo] fix a mem leak fix a mem leak at tensor_repo Signed-off-by: Hyoung Joo Ahn --- gst/nnstreamer/tensor_repo/tensor_reposrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/nnstreamer/tensor_repo/tensor_reposrc.c b/gst/nnstreamer/tensor_repo/tensor_reposrc.c index 6eb3080..451dfe0 100644 --- a/gst/nnstreamer/tensor_repo/tensor_reposrc.c +++ b/gst/nnstreamer/tensor_repo/tensor_reposrc.c @@ -243,6 +243,9 @@ gst_tensor_reposrc_set_property (GObject * object, guint prop_id, self->fps_n = -1; self->fps_d = -1; } + + if (new_caps) + gst_caps_unref (new_caps); self->negotiation = FALSE; break; } -- 2.7.4