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

QString::number causes severe memory leaks.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.1.0 Beta 1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 8 x64, Qt 5.1.0 beta 1 statically compiled with MSVC2012 x64

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes