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

QString::number causes severe memory leaks.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.1.0 Beta 1
    • None
    • Windows 8 x64, Qt 5.1.0 beta 1 statically compiled with MSVC2012 x64

      Using QString::number causes memory leaks. Follows a piece of code that causes the problem.

      void memory_leak_function()
      {
      QString test_string;
      for(quint32 k=0; k<5000000; k++)

      { test_string=QString::number(0xA7, 16); }

      }

      Qt 5.1.0 beta 1 static compile MSVC2012 x64 on Windows 8 x64:
      Used memory before calling memory_leak_function: 25 MB.
      Used memory after calling memory_leak_function: 180 MB.

      Qt 5.0.2 static compile MSVC2012 x64 on Windows 8 x64:
      Used memory before calling memory_leak_function: 25 MB.
      Used memory after calling memory_leak_function: 25 MB.

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

            smd Jan Arve
            jubba Claudio Barutta
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes