Prevent memory leak with layout test and counting malloc/free

• Nov 9, 2016 - 10:02
Reported version
3.0
Type
Functional
Severity
S4 - Minor
Status
active
Project

It would be great if we could make sure that the loading and unloading of scores doesn't leak. (In MuseScore 2, we know it's not the case...)

We could add a test, on linux as follow.

It wouldn't really help to find the leak but at least it would avoid regression.

Any developer on Linux wants to try this?


Comments

Do we really use malloc() and free() rather than new and delete?
I did a quick search and found malloc only in fonttools (1), freetype (5), poppler (12) and portmidi (1)