Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.4, 4.8.0
-
None
-
windows 7 x64
vs2010
-
b62dc3277c4d41cc99d37c457e3a55842879e0b1
Description
Qt-4.8 has memory leak in QPainter::drawText(), the following code can reproduce this problem:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#ifdef _MSC_VER
//////////////////////////////////////////////////////////////////////////
// memory leak detection
//////////////////////////////////////////////////////////////////////////
// get the current state of the flag
int nCrtDbgFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
// set memory leak check flag
nCrtDbgFlag |= _CRTDBG_LEAK_CHECK_DF;
// set the new debug flag
_CrtSetDbgFlag(nCrtDbgFlag);
#endif
return 0;
}
To reproduce this problem you have to run this program by vistual studio in windows, start the program by pressing F5 and after the program exited you will see memory leaks report in the output window of visual studio.
Attachments
Issue Links
- replaces
-
QTBUG-27472 QFontEngine object reference leak on QPainter::drawText
- Closed