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

Memory leak in QAudioDecoder

    XMLWordPrintable

Details

    • b2178768f9ff50354f343838f2f916d87e0167c (qtmultimedia/5.5, 11.3.2015, 5.5)

    Description

      call of QAudioDecoder::read() method leads to memory leaks

      I initialize QAudioDecoder* decoder by a way:

      decoder = new QAudioDecoder;
      decoder->setSourceFilename(audioFileName);
      connect(decoder, SIGNAL(bufferReady()), SLOT(processBuffer()));

      and then in a method

      MyClass::processBuffer()

      if i just invoke decoder->read() many times it leads to big memory leaks

      Note: delete of decoder not solve that issue

      ---------
      Is there is a fast way to avoid this problem? Or Is there are another ways to process coded audio files without QAudioDecoder?

      Attachments

        1. qtbug40571_purify.tasks
          254 kB
        2. qtbug40571_purify.txt
          173 kB
        3. qtbug40571.zip
          194 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            thejack Anton
            Votes:
            2 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes