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

Memory leak in qvnc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P4: Low
    • None
    • 5.12.10, 5.15.3, 6.0.2
    • QPA
    • None

    Description

      Reproduce:

      Start any Qt Application with -platform vnc

      int main() {
          char arg0[] = "./app";
          char arg1[] = "-platform";
          char arg2[24] = "vnc";
          char* argv[] = {arg0, arg1, arg2};
          QApplication app ( 3, argv );
          // Create e.g. a window...
          return app.exec();
      }
      

      Fix:
      Add delete in qtbase/src/plugins/platforms/vnc/qvncscreen.cpp destructor.

      QVncScreen::~QVncScreen()
      {
          ...
          if (dirty)
              delete dirty;
      }
      

      This fix has been thoroughly tested only with Qt 5.12.10.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            youduda Florian Freund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes