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

You may want to ask this question here:


or on the #qt channel on freenode.net (IRC)

Jump to Post

All 2 Replies

You should use Deleaker or BoundsChecker...

Be a part of the DaniWeb community

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