remove Glib::ustring from libardour; allow any characters except '/' and '\' in paths...
[ardour.git] / libs / ardour / source.cc
index 894233f436a916539f376ac9dfaab6335c94287d..6ab907ba169861826872028e0015e23e8f0ff551 100644 (file)
@@ -272,13 +272,19 @@ Source::set_allow_remove_if_empty (bool yn)
        }
 }
 
+void
+Source::inc_use_count ()
+{
+        g_atomic_int_inc (&_use_count);
+}
+
 void
 Source::dec_use_count ()
 {
 #ifndef NDEBUG
         gint oldval = g_atomic_int_exchange_and_add (&_use_count, -1);
-        cerr << "Bad use dec for " << name() << endl;
         if (oldval <= 0) {
+                cerr << "Bad use dec for " << name() << endl;
                 abort ();
         }
         assert (oldval > 0);