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

Memory leak in qvnc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Won't Do
    • Affects Version/s: 5.12.10, 5.15.3, 6.0.2
    • Fix Version/s: None
    • Component/s: QPA
    • Labels:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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