Hi all,

My app has been running fine on my Intel Mac but, when I tried running it on my wife's M1 Mac, we ran into heap issues.

Specifically, the app crashes when attempting to apply ticks/labels to a bar graph and gives the error message:

malloc: Heap corruption detected, free list is damaged at 0x6000002280c0
*** Incorrect guard value: 4633641066610819072

The code for creating the ticks & labels follows:

// Generate ticks every 10 IBU values
QVector<double> ticks {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
QVector<QString> labels {"0-10", "11-20", "21-30", "31-40", "41-50", "51-60", "61-70", "71-80", "81-90", "91-100",
QSharedPointer<QCPAxisTickerText> textTicker(new QCPAxisTickerText);
textTicker->addTicks(ticks, labels);

I'm thinking that it has something to do with a quirk with Apple's translation layer between Intel and ARM, but I'm not sure. The code in question seems very simple to me so I'm not sure what it could be. Any ideas?