Phil Thompson [EMAIL PROTECTED] wrote:
Except that this is not totally equivalent:
- In the C++ version, dlg is a local variable: so it gets deleted
when we get out of function().
- In the Python version, dlg is owned by self: when we get out of
function(), it is still referenced and won't
Le Lundi 27 Février 2006 11:20, Phil Thompson a écrit :
You don't say what versions you are using. I think this was fixed in v3.15
- at least I don't see any leak in current snapshots.
Oups, my bad. I'm using 3.13. Good to know it has been fixed.
--
Aurélien Gâteau - [EMAIL PROTECTED]
Hello,
(Maybe this is not new to you, sorry if it's the case.)
I have been monitoring a big PyQt application lately, trying to reduce memory
usage. I noticed that QDialog causes memory leaks.
Using C++, one can use a dialog like this:
void function() {
MyDialog dlg(this);
dlg.exec();
On Monday 27 February 2006 9:43 am, Aurélien Gâteau wrote:
Hello,
(Maybe this is not new to you, sorry if it's the case.)
I have been monitoring a big PyQt application lately, trying to reduce
memory usage. I noticed that QDialog causes memory leaks.
Using C++, one can use a dialog like