@BigBen said in Potential memory leak in QSignalMapper : Qt version 6.3.0:
connect(myMapper, SIGNAL(mapped(int)), this, SLOT(up(int)));
I'm pretty sure that this:
connect(myMapper, SIGNAL(mapped(int)), this, SLOT(up(int)));
should not be done in the loop.
There should only be one connect of the mapper to the receiving object