From: Sangjung Woo Date: Mon, 4 May 2020 07:04:40 +0000 (+0900) Subject: [Android/AMC] Set the omitted finalize function X-Git-Tag: submit/tizen/20200604.023022~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e4406f36cd0a91b300f24d3aa9b7ee205ecaba0;p=platform%2Fupstream%2Fnnstreamer.git [Android/AMC] Set the omitted finalize function 'gst_amc_src_finalize()' exists in the code but the finalize of GObject class is not set. Because of this reason, gst_amc_src_finalize() function is not called at all. This patch fixes this bug. Signed-off-by: Sangjung Woo --- diff --git a/ext/nnstreamer/android_source/gstamcsrc.c b/ext/nnstreamer/android_source/gstamcsrc.c index c84464d..d79340d 100644 --- a/ext/nnstreamer/android_source/gstamcsrc.c +++ b/ext/nnstreamer/android_source/gstamcsrc.c @@ -272,6 +272,7 @@ gst_amc_src_class_init (GstAMCSrcClass * klass) /** property-related init */ gobject_class->set_property = gst_amc_src_set_property; gobject_class->get_property = gst_amc_src_get_property; + gobject_class->finalize = gst_amc_src_finalize; g_object_class_install_property (gobject_class, PROP_LOCATION, g_param_spec_string ("location", "File Location",