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

QGestureManager memory leak on unregisterRecognizer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.7.0
    • Core: Event loop
    • None
    • linux
    • 81644d683c0c8da3f14f162e31bc55038cb121d7

    Description

      #include <QApplication>
      #include <QGestureRecognizer>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QGestureRecognizer::unregisterRecognizer(Qt::PanGesture);
      
          return 0;
      }
      

      Running under valgrind:

      ==9317== 4 bytes in 1 blocks are definitely lost in loss record 1 of 124
      ==9317==    at 0x402569A: operator new(unsigned int) (vg_replace_malloc.c:255)
      ==9317==    by 0x424D748: QGestureManager::QGestureManager(QObject*) (qgesturemanager.cpp:85)
      ==9317==    by 0x41CE76F: QGestureManager::instance() (qapplication.cpp:5791)
      ==9317==    by 0x424D334: QGestureRecognizer::unregisterRecognizer(Qt::GestureType) (qgesturerecognizer.cpp:232)
      

      Attachments

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

        Activity

          People

            zander tho (closed Nokia identity) (Inactive)
            mikkohar Mikko Harju
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes