mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-03-11 19:46:38 +00:00
g_atomic_int_add (&schema->refs, -1); will return the value of 'refs' _before_ adding -1 to it, so checking this value for 0 to see if the refcount dropped to 0 after adding -1 is not going to work and will cause a leak. Using g_atomic_int_dec_and_test() fixes this problem as this will return TRUE when the value drops to 0 after being decremented. https://bugzilla.gnome.org/show_bug.cgi?id=756766
GObject based library for accessing the Secret Service API.
Description
Languages
C
93.6%
Python
4%
Meson
1%
Shell
0.5%
Vala
0.4%
Other
0.4%