diff --git a/libs/ardour/ardour/buffer.h b/libs/ardour/ardour/buffer.h index 3fb64455af..3960425526 100644 --- a/libs/ardour/ardour/buffer.h +++ b/libs/ardour/ardour/buffer.h @@ -119,7 +119,7 @@ public: { _size = capacity; // For audio buffers, size = capacity (always) #ifdef NO_POSIX_MEMALIGN - b = (Sample *) malloc(sizeof(Sample) * capacity); + _data = (Sample *) malloc(sizeof(Sample) * capacity); #else posix_memalign((void**)_data, 16, sizeof(Sample) * capacity); #endif