[Android/AMC] Set the omitted finalize function
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 4 May 2020 07:04:40 +0000 (16:04 +0900)
committerwooksong <wook16.song@samsung.com>
Fri, 8 May 2020 08:25:24 +0000 (17:25 +0900)
'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 <sangjung.woo@samsung.com>
ext/nnstreamer/android_source/gstamcsrc.c

index c84464d..d79340d 100644 (file)
@@ -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",