mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-12 20:36:15 +01:00
Cosmetic changes
Use inc/dec for refcounting.
This commit is contained in:
parent
88f23fb1d9
commit
77110304cc
@ -1110,7 +1110,7 @@ g_regex_unref (GRegex *regex)
|
|||||||
{
|
{
|
||||||
g_return_if_fail (regex != NULL);
|
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);
|
g_free (regex->pattern);
|
||||||
if (regex->pcre_re != NULL)
|
if (regex->pcre_re != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user