Potential memory leak?

2009-11-27 Thread Qian Xu
Hi All, I am using QtD to do some gui stuff. As the QtD documentation described, Qt- data types should be declared with keyword "scope", so that all variables can be deallocated in a right order. I found a memory leak problem accidentally, when I executed the following code very frequently: //

Re: Potential memory leak?

2009-11-29 Thread Eldar Insafutdinov
Qian Xu Wrote: > Hi All, > > I am using QtD to do some gui stuff. As the QtD documentation described, Qt- > data types should be declared with keyword "scope", so that all variables > can be deallocated in a right order. > > I found a memory leak problem accidentally, when I executed the follow

Re: Potential memory leak?

2009-11-30 Thread Qian Xu
Eldar Insafutdinov wrote: > > You only have to use scope for top-level QObject subclasses. For anything > else you should use auto. Nevertheless, it would be useful if you submit a > bug report. Even when my application is multi-thread? I am not sure, if I can declare QPixmap also as "auto"