Hello.
I'm trying to solve some memory leaks in my application. I noticed that when I allocate a object with the new operator (for example a QGLWidget) obviously the memory used by application increased, but when I tried to delete the object only a portion has been released. To better understand I tried a simple program like the following code:

QList<QGLWidget *> aaa;
int i;

(1)
for(i=0;i<100;i++)
aaa.append(new QGLWidget());

(2)
for(i=0;i<100;i++)
delete aaa.at(i);

(3)
The application memory usage at each point is the following: (1) 4672 K (2) 413156 K (3) 111212 K

Why the deallocation isn't complete? In my original application I need to allocate and deallocate many times these objects but this situation brings a memory increase too high. I'm using Qt 4.8.4 in OpenSUSE 12.3. Can someone help me?? Thanks