Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31320

Memory Leak in QString::number()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 5.0.2, 5.1.0 Beta 1
    • None
    • Windows 7 Qt 5.1.0 Beta 1 (32 bit msvc), Mac OS X 10.7, Qt 5.0.2 (64 bit) clang
    • 403c46b9b72eaefb7abacc691da591c3f33d9857

      The following very simple program causes a massive memory leak.

      #include <QString>
      
      int main(int argc, char *argv[])
      {
          forever
          {
              QString::number(0);
          }
      
          return 0;
      }
      

      Be careful while executing, it will eat up your memory very fast.

      The same behaviour can be observed with Windows 7 Sp1!

      The memory leak does not occur with Qt 4.8.4!

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            smd Jan Arve
            derhandwerk Wolf Bublitz
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes