[Qt-qml] Valgrind and QML applications

Artur Souza (MoRpHeUz) artur.souza at openbossa.org
Fri Jan 7 12:51:59 CET 2011


Hi Mikko,

On Fri, Jan 7, 2011 at 3:27 AM,  <mikko.kiilholma at nokia.com> wrote:
> I used to use Valgrind with Qt applications succesfully to detect leaks.

kudos for you :) It's great to see that people still care about the
code they write!

> I am asking this because the tool finds so many leaks in many applications
> and they are not the kind of leaks that occurs only once in a lifetime of
> application.
> I am using Valgrind 3.5.0 with Qt4.7.1.

Could you please attach the output of valgrind or even a simple
example so I can try to reproduce it here?

> For example in struct SimpleList in qdeclarativeengine_p.h there is an array
> allocated but it is not always deleted and running a repetitive case seems
> to increase the leak count.

At first I would say that this sounds bad. Let's try to take a look at
it ;) Please, share your test case (as simple as possible).

Cheers!

-- 
-------------------------------------------------------
Artur Duque de Souza
openBossa
INdT - Instituto Nokia de Tecnologia
-------------------------------------------------------
Blog: http://blog.morpheuz.cc
PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
-------------------------------------------------------


More information about the Qt-qml mailing list