plug QTextCodec memory leaks

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-09-19 17:57:10 +03:00
parent 11876756e7
commit ab1013f279
2 changed files with 3 additions and 5 deletions

View file

@ -1,3 +1 @@
leak:libfontconfig.so
leak:Katie::QTextCodec::codecForName
leak:Katie::QTextCodec::codecForMib

View file

@ -83,8 +83,8 @@ public:
*/
QTextCodecCleanup::~QTextCodecCleanup()
{
for (int i = 0; i < this->size(); i++) {
delete this->at(i);
while (begin() != end()) {
delete *begin();
}
localeMapper = nullptr;
#ifndef QT_NO_DEBUG