Heob indicating leak in qt_metacall()
-
Hi, in the software I'm working we have some "widgets" like a calculator widget, a text widget. These are like tabs we can create and delete. I can create 5 calculator for example, but are different.
I was noticing some leakage if I create certain amounts, specifically 3 and 9.
Heob shows me that stack trace are like the following:1: malloc in 2: operator new(unsigned long long) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/libstdc++-6.dll 3: QHashData::rehash(int) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll 4: QPixmapStyle::qt_metacall(QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 5: QProxyStyle::qt_metacall(QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 6: QProxyStyle::qt_metacall(QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 7: QMimeType::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll 8: QObject::destroyed(QObject*) in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll 9: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 10: QLabel::~QLabel() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 11: QObjectPrivate::deleteChildren() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll 12: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 13: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 14: QObjectPrivate::deleteChildren() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Core.dll 15: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll 16: QWidget::~QWidget() in C:/Qt/Qt5.15.2/5.15.2/mingw81_64/bin/Qt5Widgets.dll
This is a example, but it can vary in respect to who calls the qt_metacall(). if I use 3 objects the leak arise. if I use 9 the leak becomes half. Any ideas?