[Repo] fix a mem leak accepted/tizen/unified/20200629.143505 submit/tizen/20200626.060219
authorHyoung Joo Ahn <hello.ahn@samsung.com>
Thu, 25 Jun 2020 11:37:02 +0000 (20:37 +0900)
committerGeunsik Lim <leemgs@users.noreply.github.com>
Fri, 26 Jun 2020 01:49:44 +0000 (10:49 +0900)
fix a mem leak at tensor_repo

Signed-off-by: Hyoung Joo Ahn <hello.ahn@samsung.com>
gst/nnstreamer/tensor_repo/tensor_reposrc.c

index 6eb3080..451dfe0 100644 (file)
@@ -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;
     }