Fix meterPanels size calculation for dynamic array allocation

This commit is contained in:
Nathan Scott 2021-08-31 15:43:59 +10:00 committed by BenBE
parent 393330239e
commit 1f2f567ca1
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ static void CategoriesPanel_delete(Object* object) {
static void CategoriesPanel_makeMetersPage(CategoriesPanel* this) {
size_t columns = HeaderLayout_getColumns(this->scr->header->headerLayout);
MetersPanel** meterPanels = xMallocArray(columns, sizeof(MetersPanel));
MetersPanel** meterPanels = xMallocArray(columns, sizeof(MetersPanel*));
for (size_t i = 0; i < columns; i++) {
char titleBuffer[32];