fix UTC fail. 72/75272/1 accepted/tizen/mobile/20160620.122041 accepted/tizen/wearable/20160620.122057 submit/tizen_mobile/20160617.080734 submit/tizen_mobile/20160620.094816 submit/tizen_mobile/20160620.094949 submit/tizen_wearable/20160617.080747 submit/tizen_wearable/20160620.094849
authorjiseob.jang <jiseob.jang@samsung.com>
Fri, 17 Jun 2016 08:01:48 +0000 (17:01 +0900)
committerjiseob.jang <jiseob.jang@samsung.com>
Fri, 17 Jun 2016 08:01:48 +0000 (17:01 +0900)
Change-Id: I2495dbf5c9937d1e10dfa91cc11dac824f1c0fb1
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
CMakeLists.txt
packaging/libaccount-service.spec
src/account.c

index 8c791dd..a65c82e 100644 (file)
@@ -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)
index 44a5161..ef700b7 100644 (file)
@@ -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
index 58ec184..a93c1ba 100644 (file)
@@ -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;