Hello.
I compiled a basic GUI example written with Qt. When I run with valgrind, it tells that there is memory leak.
It is stranger, because at each time I run the app, the number of malloc calls are different.
Qt seems nondeterministic and it does not free allocated memory.
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
hello.resize(100, 30);
hello.show();
return app.exec();
}
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks