diff options
Diffstat (limited to 'libs/ardour/ardour/source.h')
-rw-r--r-- | libs/ardour/ardour/source.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index 9abf7ff8f0..6f750e6fd0 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -106,15 +106,7 @@ class Source : public SessionObject Flag flags() const { return _flags; } void inc_use_count () { g_atomic_int_inc (&_use_count); } - void dec_use_count () { -#ifndef NDEBUG - gint oldval = g_atomic_int_exchange_and_add (&_use_count, -1); - assert (oldval > 0); -#else - g_atomic_int_exchange_and_add (&_use_count, -1); -#endif - } - + void dec_use_count (); int use_count() const { return g_atomic_int_get (&_use_count); } bool used() const { return use_count() > 0; } |