From: Jaeyun Date: Tue, 2 Oct 2018 05:59:56 +0000 (+0900) Subject: [Demux/Transform] add code to free string X-Git-Tag: v0.0.2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c28e9afac5eeae1eb3b5b5a266e47b787832e4d0;p=platform%2Fupstream%2Fnnstreamer.git [Demux/Transform] add code to free string add code to free the array of strings Signed-off-by: Jaeyun Jung --- diff --git a/gst/tensor_demux/gsttensordemux.c b/gst/tensor_demux/gsttensordemux.c index 18e9682..d924f85 100644 --- a/gst/tensor_demux/gsttensordemux.c +++ b/gst/tensor_demux/gsttensordemux.c @@ -559,6 +559,7 @@ gst_tensor_demux_set_property (GObject * object, guint prop_id, filter->tensorpick = g_list_append (filter->tensorpick, GINT_TO_POINTER (val)); } + g_strfreev (strv); break; } default: diff --git a/gst/tensor_transform/tensor_transform.c b/gst/tensor_transform/tensor_transform.c index d9dd713..c047f79 100644 --- a/gst/tensor_transform/tensor_transform.c +++ b/gst/tensor_transform/tensor_transform.c @@ -262,6 +262,7 @@ gst_tensor_transform_set_option_data (GstTensor_Transform * filter) filter->data_dimchg.from = a; filter->data_dimchg.to = b; filter->loaded = TRUE; + g_strfreev (strv); } break; case GTT_TYPECAST: @@ -282,6 +283,7 @@ gst_tensor_transform_set_option_data (GstTensor_Transform * filter) filter->data_arithmetic.value = g_ascii_strtod (strv[1], NULL); filter->loaded = TRUE; + g_strfreev (strv); } break; case GTT_TRANSPOSE: @@ -296,6 +298,7 @@ gst_tensor_transform_set_option_data (GstTensor_Transform * filter) filter->data_transpose.trans_order[i] = a; } filter->loaded = TRUE; + g_strfreev (strv); } break; default: