Remove config_release_engine when directories are made 30/86330/1 accepted/tizen/common/20160831.162317 submit/tizen/20160831.130415
authorsooyeon.kim <sooyeon.kim@samsung.com>
Wed, 31 Aug 2016 12:59:44 +0000 (21:59 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Wed, 31 Aug 2016 12:59:44 +0000 (21:59 +0900)
Change-Id: Id14848461b08b62454448efaff3e9161be05885f
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
common/tts_config_mgr.c

index a008c7c559c75817a8012e374291275b8450c9e7..a3e33d4c218d5cbdcdc7d8f1effe5e2e639c581b 100644 (file)
@@ -1039,7 +1039,6 @@ int tts_config_mgr_initialize(int uid)
                if (0 != mkdir(TTS_CONFIG_BASE, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) {
                        SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_CONFIG_BASE);
                        __tts_config_release_client(uid);
-                       __tts_config_release_engine();
                        return TTS_CONFIG_ERROR_OPERATION_FAILED;
                } else {
                        SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_CONFIG_BASE);
@@ -1050,7 +1049,6 @@ int tts_config_mgr_initialize(int uid)
                if (0 != mkdir(TTS_HOME, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) {
                        SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_HOME);
                        __tts_config_release_client(uid);
-                       __tts_config_release_engine();
                        return TTS_CONFIG_ERROR_OPERATION_FAILED;
                } else {
                        SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_HOME);
@@ -1061,7 +1059,6 @@ int tts_config_mgr_initialize(int uid)
                if (0 != mkdir(TTS_DOWNLOAD_BASE, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) {
                        SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_DOWNLOAD_BASE);
                        __tts_config_release_client(uid);
-                       __tts_config_release_engine();
                        return TTS_CONFIG_ERROR_OPERATION_FAILED;
                } else {
                        SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_DOWNLOAD_BASE);
@@ -1072,7 +1069,6 @@ int tts_config_mgr_initialize(int uid)
                if (0 != mkdir(TTS_DOWNLOAD_ENGINE_INFO, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) {
                        SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to make directory : %s", TTS_DOWNLOAD_ENGINE_INFO);
                        __tts_config_release_client(uid);
-                       __tts_config_release_engine();
                        return TTS_CONFIG_ERROR_OPERATION_FAILED;
                } else {
                        SLOG(LOG_DEBUG, tts_tag(), "Success to make directory : %s", TTS_DOWNLOAD_ENGINE_INFO);