Changeset 211399 in webkit


Ignore:
Timestamp:
Jan 30, 2017 6:12:06 PM (7 years ago)
Author:
akling@apple.com
Message:

Fix CMSampleBuffer leak in MediaSampleAVFObjC::createNonDisplayingCopy().
<https://webkit.org/b/167621>

Reviewed by Andy Estes.

We were failing to adopt the CMSampleBuffer after copying it. Seen on leaks bot.

  • platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:

(WebCore::MediaSampleAVFObjC::createNonDisplayingCopy):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r211398 r211399  
     12017-01-30  Andreas Kling  <akling@apple.com>
     2
     3        Fix CMSampleBuffer leak in MediaSampleAVFObjC::createNonDisplayingCopy().
     4        <https://webkit.org/b/167621>
     5
     6        Reviewed by Andy Estes.
     7
     8        We were failing to adopt the CMSampleBuffer after copying it. Seen on leaks bot.
     9
     10        * platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:
     11        (WebCore::MediaSampleAVFObjC::createNonDisplayingCopy):
     12
    1132017-01-30  Andy Estes  <aestes@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm

    r210621 r211399  
    230230    }
    231231
    232     return MediaSampleAVFObjC::create(newSampleBuffer, m_id);
    233 }
    234 
    235 }
     232    return MediaSampleAVFObjC::create(adoptCF(newSampleBuffer).get(), m_id);
     233}
     234
     235}
Note: See TracChangeset for help on using the changeset viewer.