remove Glib::ustring from libardour; allow any characters except '/' and '\' in paths...
[ardour.git] / libs / ardour / audio_buffer.cc
index c5717f05282d5d13dd7b4d9190d65bc442d8f603..8b2d5c744f116310f24d9453ae9da02b2a3f2547 100644 (file)
@@ -1,16 +1,16 @@
 /*
-    Copyright (C) 2006-2007 Paul Davis 
-    
+    Copyright (C) 2006-2007 Paul Davis
+
     This program is free software; you can redistribute it and/or modify it
     under the terms of the GNU General Public License as published by the Free
     Software Foundation; either version 2 of the License, or (at your option)
     any later version.
-    
+
     This program is distributed in the hope that it will be useful, but WITHOUT
     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     for more details.
-    
+
     You should have received a copy of the GNU General Public License along
     with this program; if not, write to the Free Software Foundation, Inc.,
     675 Mass Ave, Cambridge, MA 02139, USA.
@@ -58,9 +58,7 @@ AudioBuffer::resize (size_t size)
                return;
        }
 
-       if (_data) {
-               free (_data);
-       }
+       free (_data);
 
        _capacity = size;
        _size = size;