From 18a8cd2426a859fa16e514bcb672079317d9db94 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 1 Jun 2011 07:22:46 +0200 Subject: Replace deprecated g_atomic_int_exchange_and_add() --- mail/mail-mt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/mail-mt.c') diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 686f6dc0aa..5ef8a0147e 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -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 -- cgit