[CONF] Fix nnstreamer conf load function
authorgichan-jang <gichan2.jang@samsung.com>
Thu, 21 May 2020 02:23:32 +0000 (11:23 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 22 May 2020 04:22:03 +0000 (13:22 +0900)
Since key_file is declared using g_autoptr macro, it does not need to cleaning up variables.
It is related issue #2393.

Signed-off-by: gichan-jang <gichan2.jang@samsung.com>
gst/nnstreamer/nnstreamer_conf.c

index 0c1451d..26e88b8 100644 (file)
@@ -299,7 +299,7 @@ gboolean
 nnsconf_loadconf (gboolean force_reload)
 {
   const gchar root_path_prefix[] = NNSTREAMER_SYS_ROOT_PATH_PREFIX;
-  g_autoptr (GKeyFile) key_file = NULL;
+  GKeyFile *key_file = NULL;
   guint i, t;
 
   if (FALSE == force_reload && TRUE == conf.loaded)