ecore_thread_main_loop_end();
char appid[1024] = {'\0',};
- aul_app_get_appid_bypid(getpid(), appid, sizeof(appid) - 1);
+ ret = aul_app_get_appid_bypid(getpid(), appid, sizeof(appid) - 1);
+ if (ret != AUL_R_OK)
+ SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to get aul_app_get_appid_bypid : %d", ret);
int status = aul_app_get_status(appid);
if (STATUS_FOCUS == status) {
GDBusVcclient *service;
GError *error = NULL;
+ gboolean ret = FALSE;
service = gdbus_vcclient_skeleton_new();
g_signal_connect(service, "handle-vcm-client-method-utterance-status",
G_CALLBACK(vcm_client_method_utterance_status), NULL);
- g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(service),
+ ret = g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(service),
connection, VC_CLIENT_SERVICE_OBJECT_PATH, &error);
- if (error) {
+ if (ret == FALSE || error) {
SLOG(LOG_DEBUG, TAG_VCC, "Error : %s\n", error->message);
g_error_free(error);
}
gdbus_vcdaemon_call_vcm_daemon_method_send_audio_streaming(g_daemon_proxy,
pid, event, len, variant, NULL, NULL, NULL);
+ g_variant_ref(variant);
return 0;
#else
if (0 != __dbus_check()) {
/* Get app focus and set foreground */
char appid[1024] = {'\0',};
- aul_app_get_appid_bypid(getpid(), appid, sizeof(appid) - 1);
+ ret = aul_app_get_appid_bypid(getpid(), appid, sizeof(appid) - 1);
+ if (ret != AUL_R_OK)
+ SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to get aul_app_get_appid_bypid : %d", ret);
int status = aul_app_get_status(appid);
if (status == STATUS_FOCUS) {
int ret = __vc_db_exec_query(db_handle, sql);
if (ret != VC_DB_ERROR_NONE) {
SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Fail to create table(%s), %d", table, ret);
+ free(sql);
+ sql = NULL;
return VC_DB_ERROR_OPERATION_FAILED;
}
SLOG(LOG_WARN, vc_db_tag(), "[SQL] %s", sql);
pid, utt_id, event, len, variant, NULL, NULL, NULL);
g_object_unref(proxy);
+ g_variant_ref(variant);
return 0;
#else
SLOG(LOG_INFO, TAG_VCD, "[Dbus] Send TTS feedback streaming : manager_pid(%d), pid(%d), utt_id(%d) feedback event(%d), buffer(%p), length(%d)", manager_pid, pid, utt_id, event, buffer, len);
utt_id, event, len, variant, NULL, NULL, NULL);
g_object_unref(proxy);
+ g_variant_ref(variant);
return 0;
#else
SLOG(LOG_INFO, TAG_VCD, "[Dbus] Send TTS feedback streaming : pid(%d), utt_id(%d), feedback event(%d), buffer(%p), length(%d)", pid, utt_id, event, buffer, len);
SLOG(LOG_DEBUG, TAG_VCD, "[IN] vcd mgr get audio type : pid(%d)", pid);
gdbus_vcdaemon_complete_vcm_daemon_method_get_audio_type(service, invocation, ret, audio_type);
-
+ if (audio_type) {
+ free (audio_type);
+ audio_type = NULL;
+ }
return TRUE;
}
return 0;
}
-#endif
\ No newline at end of file
+#endif