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

GenericProposal leaks

XMLWordPrintable

      See one ctor of GenericProposal:

      GenericProposal::GenericProposal(int cursorPos, const QList<AssistProposalItemInterface *> &items)
          : IAssistProposal(cursorPos)
          , m_model(new GenericProposalModel)
      {
          m_model->loadContent(items);
      }
      

      This allocates a new GenericProposalModel but does not delete it:

      GenericProposal::~GenericProposal()
      {}
      

      Some calling code seems to take care of deleting the model, other doesn't.

      You should make sure that m_model is always deleted properly.

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

            davschul David Schulz
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes