Replace deprecated g_atomic_int_exchange_and_add()

This commit is contained in:
Milan Crha
2011-06-01 07:22:46 +02:00
committed by Rodrigo Moya
parent c728cc2d96
commit 37fa42f72f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ store_info_unref (StoreInfo *store_info)
g_return_if_fail (store_info != NULL);
g_return_if_fail (store_info->ref_count > 0);
if (g_atomic_int_exchange_and_add (&store_info->ref_count, -1) > 1)
if (g_atomic_int_add (&store_info->ref_count, -1) > 1)
return;
g_object_unref (store_info->store);
+1 -1
View File
@@ -165,7 +165,7 @@ mail_msg_unref (gpointer msg)
g_return_if_fail (mail_msg != NULL);
g_return_if_fail (mail_msg->ref_count > 0);
if (g_atomic_int_exchange_and_add (&mail_msg->ref_count, -1) > 1)
if (g_atomic_int_add (&mail_msg->ref_count, -1) > 1)
return;
#ifdef MALLOC_CHECK