summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-06-03 17:41:03 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-06-03 17:42:09 -0400
commite3f055c886e9db0c105de59e80573a9715c41060 (patch)
tree2811aedd357a391ef3109cdf986960df3b2563bf /eel
parenta0d9614d204d0494d329e04c1d7652e451c2573f (diff)
downloadnautilus-e3f055c886e9db0c105de59e80573a9715c41060.tar.gz
eel-string: don't use deprecated gatomic API
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eel/eel-string.c b/eel/eel-string.c
index d45c62178..1a7d65d46 100644
--- a/eel/eel-string.c
+++ b/eel/eel-string.c
@@ -900,7 +900,7 @@ eel_ref_str_unref (eel_ref_str str)
} else if (old_ref == 0x80000001) {
G_LOCK (unique_ref_strs);
/* Need to recheck after taking lock to avoid races with _get_unique() */
- if (g_atomic_int_exchange_and_add (count, -1) == 0x80000001) {
+ if (g_atomic_int_add (count, -1) == 0x80000001) {
g_hash_table_remove (unique_ref_strs, (char *)str);
g_free ((char *)count);
}