Fixed memory allocation/deallocation for complex visibility columns.