Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.0
-
Solaris x64
-
d15f4b53d0d52a94b3c44b927816967a151f7ccf
Description
QBasicAtomicInt::deref() doesn't return 0 when it should do thus causing memory leaks with classes like QByteArray on Solaris x64. deref() returns something other than 0 when the QByteArray in the following example is deleted therefore it ends up leaking memory.
#include <QByteArray> int main(int argc, char **argv) { for (int i=0;i<100;i++) QByteArray ba("foo"); return 0; }
Using dbx on Solaris with "check -memuse" shows a clear memory leak coming from the QByteArray
Attachments
For Gerrit Dashboard: QTBUG-24470 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
19626,1 | Fix q_atomic_decrement for 64-bit Solaris | 4.8 | qt/qt | Status: MERGED | +2 | 0 |