[glib] Cosmetic changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Cosmetic changes
- Date: Mon, 23 May 2011 05:04:23 +0000 (UTC)
commit 77110304cc3e01f60235286b61082ea6dd602d06
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 23 00:48:10 2011 -0400
Cosmetic changes
Use inc/dec for refcounting.
glib/gregex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gregex.c b/glib/gregex.c
index 6bb6558..7be508c 100644
--- a/glib/gregex.c
+++ b/glib/gregex.c
@@ -1110,7 +1110,7 @@ g_regex_unref (GRegex *regex)
{
g_return_if_fail (regex != NULL);
- if (g_atomic_int_exchange_and_add (®ex->ref_count, -1) - 1 == 0)
+ if (g_atomic_int_dec_and_test (®ex->ref_count))
{
g_free (regex->pattern);
if (regex->pcre_re != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]