<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Painting a video into a canvas doesn't work when accelerated compositing is enabled"
   href="https://bugs.webkit.org/show_bug.cgi?id=159405#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Painting a video into a canvas doesn't work when accelerated compositing is enabled"
   href="https://bugs.webkit.org/show_bug.cgi?id=159405">bug 159405</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=282885&amp;action=diff" name="attach_282885" title="Patch">attachment 282885</a> <a href="attachment.cgi?id=282885&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=282885&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=282885&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:733
&gt; +    // Ensure that we destroy the surface before unmapping the video frame.
&gt; +    surface.release();</span >

release() leaks the surface, it doesn't destroy it. What you want is

surface = nullptr;

but I'm not sure this is enough, though. I don't know why it's needed to destroy the surface before unmapping the frame, but the cairo context owns a reference to the surface , so even if you clear the smart pointer the surface will still be alive.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>