From: jiseob.jang Date: Fri, 17 Jun 2016 08:01:48 +0000 (+0900) Subject: fix UTC fail. X-Git-Tag: accepted/tizen/mobile/20160620.122041^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a9166fd7646a5ff0de30aa6cb44cdc02646653f;p=platform%2Fcore%2Fapi%2Flibaccount-service.git fix UTC fail. Change-Id: I2495dbf5c9937d1e10dfa91cc11dac824f1c0fb1 Signed-off-by: jiseob.jang --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c791dd..a65c82e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,6 @@ SET(EXEC_PREFIX ${_prefix}) #SET(LIBDIR "\${prefix}/lib") #SET(INCLUDEDIR "\${prefix}/include ") SET(VERSION_MAJOR 0) -SET(VERSION "${VERSION_MAJOR}.4.2") +SET(VERSION "${VERSION_MAJOR}.4.3") ADD_SUBDIRECTORY(src) diff --git a/packaging/libaccount-service.spec b/packaging/libaccount-service.spec index 44a5161..ef700b7 100644 --- a/packaging/libaccount-service.spec +++ b/packaging/libaccount-service.spec @@ -1,7 +1,7 @@ Name: libaccount-service Summary: Account DB library -Version: 0.4.2 +Version: 0.4.3 Release: 1 Group: Social & Content/API License: Apache-2.0 diff --git a/src/account.c b/src/account.c index 58ec184..a93c1ba 100644 --- a/src/account.c +++ b/src/account.c @@ -203,7 +203,6 @@ ACCOUNT_API int account_insert_to_db(account_h account, int *account_db_id) _INFO("3. Before account_manager_call_account_add_sync"); bool is_success = account_manager_call_account_add_sync(acc_mgr, account_serialized, (int)getuid(), &db_id, NULL, &error); - g_variant_unref(account_serialized); ACCOUNT_CATCH_ERROR((is_success != false), {}, _account_get_error_code(is_success, error), "Failed to get dbus."); g_clear_error(&error); @@ -395,7 +394,6 @@ ACCOUNT_API int account_update_to_db_by_id(account_h account, int account_id) _INFO("3. Before account_manager_call_account_update_to_db_by_id_sync"); GVariant *account_serialized = marshal_account((account_s *)account); is_success = account_manager_call_account_update_to_db_by_id_sync(acc_mgr, account_serialized, account_id, (int)getuid(), NULL, &error); - g_variant_unref(account_serialized); if (!is_success) { error_code = _account_get_error_code(is_success, error); @@ -455,7 +453,6 @@ ACCOUNT_INTERNAL_API int account_update_to_db_by_id_without_permission(account_h _INFO("before call update() : account_id[%d]", account_id); is_success = account_manager_call_account_update_to_db_by_id_ex_sync(acc_mgr, account_serialized, account_id, (int)getuid(), NULL, &error); - g_variant_unref(account_serialized); _INFO("after call update() : is_success=%d", is_success); if (!is_success) { @@ -500,7 +497,6 @@ ACCOUNT_API int account_update_to_db_by_user_name(account_h account, const char GVariant *account_serialized = marshal_account(account_data); is_success = account_manager_call_account_update_to_db_by_user_name_sync(acc_mgr, account_serialized, user_name, package_name, (int)getuid(), NULL, &error); - g_variant_unref(account_serialized); if (!is_success) { error_code = _account_get_error_code(is_success, error); @@ -2272,7 +2268,6 @@ ACCOUNT_INTERNAL_API int account_type_insert_to_db(account_type_h account_type, int db_id = -1; GVariant *account_type_serialized = marshal_account_type((account_type_s *)account_type); bool is_success = account_manager_call_account_type_add_sync(acc_mgr, account_type_serialized, (int)getuid(), &db_id, NULL, &error); - g_variant_unref(account_type_serialized); int ret = _account_get_error_code(is_success, error); g_clear_error(&error); @@ -2313,7 +2308,6 @@ ACCOUNT_INTERNAL_API int account_type_update_to_db_by_app_id(const account_type_ } bool is_success = account_manager_call_account_type_update_to_db_by_app_id_sync(acc_mgr, account_type_variant, app_id, (int)getuid(), NULL, &error); - g_variant_unref(account_type_variant); error_code = _account_get_error_code(is_success, error); g_clear_error(&error); @@ -2417,6 +2411,7 @@ ACCOUNT_API int account_type_query_by_app_id(const char *app_id, account_type_h return ret; account_type_s *received_account_type = umarshal_account_type(account_type_variant); + g_variant_unref(account_type_variant); ACCOUNT_RETURN_VAL((received_account_type != NULL), {}, ACCOUNT_ERROR_DB_FAILED, ("INVALID DATA RECEIVED FROM SVC")); in_data->id = received_account_type->id;