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

QTextEdit memoryleak after delete

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 4.7.2
    • None
    • Windows 7 Pro. 32 Bit
      Ubuntu Desktop 10.10

    Description

      Hello Guys,

      QTextEdit seems not to free all memory allocated by the system.

      for a high value of i in the next code

      for (int i=0; i<100000; i++)
      { QWidget* te = new QTextEdit(this);
      delete te;
      }

      I got a continuous increasing in memory usage, I watch memory usage in ms windows( seven-32bit-pro) task
      manager.

      When I substitute the QTextEdit by a QWidget or a QFrame, I obtain a constant memory value in the same windows task manager.

      I reiterated the test on Ubuntu 10.10 I have same behaviour with memory less, so I decided to make a valgrind memory leak check, I obtained effectively some memory lost.

      However, I tried also dumpObjectTree to obtain list before and after new delete, I acheive a clean object tree as all childs of the QTextControl are deleted thereafter.

      Hereby, you find the valgrind report.

      I would provide information if necessary.

      Gratefully,
      Mohammad

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            unazona Mohammad Alhaija
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes