projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88f23fb
)
Cosmetic changes
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 23 May 2011 04:48:10 +0000
(
00:48
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 23 May 2011 04:48:10 +0000
(
00:48
-0400)
Use inc/dec for refcounting.
glib/gregex.c
patch
|
blob
|
history
diff --git
a/glib/gregex.c
b/glib/gregex.c
index
6bb6558
..
7be508c
100644
(file)
--- 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)