Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2343

Memory leak in qt4projectmanager plugin - MobileAppWizard

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • None
    • Quick / QML Support
    • None
    • Qt Creator master branch
    • f068e1159615ee2e1140008359e998ed95c778fd

      Hi,

      there is a memory leak in qt4projectmanager plugin - MobileAppWizard

      src/plugins/qt4projectmanager/wizards/mobileappwizard.h:
      class MobileAppWizardPrivate *m_d;

      src/plugins/qt4projectmanager/wizards/mobileappwizard.cpp:

      MobileAppWizard::MobileAppWizard()
      : Core::BaseFileWizard(parameters())
      , m_d(new MobileAppWizardPrivate)

      MobileAppWizard::~MobileAppWizard()
      {
      delete m_d->mobileApp;
      }

      So m_d is created but never deleted.
      As a fix - perhaps QScopedPointer.

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

            kandeler Christian Kandeler
            mdn Denis Mingulov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes