[v4.7.2] Leak with static QMessageBox?
-
Hi!
Simple code in a minimal example already: QMessageBox::warning(this, "TEST TITLE", "TEST TEXT");
Running it over and over again, watching "Private Bytes" in Process Explorer @WinXP.Result (KB):
Box closed | Box opened
Box closed again | Box opened again
...2236 2328 (+92K when opening box, -36K when closing box) (program start)
2292 2340 (+48, -40)
2300 2348 (+48, -40)
2308 2348 (+40, -40)
2308 2348 (+40, -40)
2308 2356 (+48, -40)
2316 2356 (+40, -40)
2316 2364 (+48, -40)
2324 2364 (+40, -40)
2324 2364 (+40, -40)
2324 2372 (+48, -40)
2332 2372 (+40, ...U see, sometimes there's more being allocated than deleted.
Can't be normal, is it? -
Hm... this is strange. Have you run the test on other computers and/or OS? May be you should reported it as a bug?
Best regards,
Leon