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.

#include <QApplication>
 #include <QPushButton>

 int main(int argc, char *argv[])
     QApplication app(argc, argv);

     QPushButton hello("Hello world!");
     hello.resize(100, 30);

     return app.exec();

Recommended Answers

All 2 Replies

You should use Deleaker or BoundsChecker...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.