PDA

View Full Version : setWindowIcon memory leak?



Romi
25th December 2009, 16:43
Hello.

When I use QWidget's setWindowIcon, it causes memory leak.
I'm using the function below, with the header, crtdbg.h, to detect memory leak.
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);

According to this page (http://qt.nokia.com/developer/changes/changes-4.3.2), this issue is fixed, but memory leak seems to happen.

The OS is WindowsXP, and I'm using Qt4.6 rebuilt with VC compiler.

Is there any solution, or can I just use this function safely even though the memory leak is reported by the function?
Thanks in advance.