[webkit-changes] [WebKit/WebKit] 28bb70: [CSS] Fix memory leak in CSSSelector copy ctor

Matthieu Dubet noreply at github.com
Tue May 9 03:53:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 28bb70d0289c97fd73f2531a411efabc06bd0c12
      https://github.com/WebKit/WebKit/commit/28bb70d0289c97fd73f2531a411efabc06bd0c12
  Author: Matthieu Dubet <m_dubet at apple.com>
  Date:   2023-05-09 (Tue, 09 May 2023)

  Changed paths:
    M Source/WebCore/css/CSSSelector.cpp

  Log Message:
  -----------
  [CSS] Fix memory leak in CSSSelector copy ctor
https://bugs.webkit.org/show_bug.cgi?id=256412
rdar://108836283

Reviewed by Antti Koivisto.

After leakRef(), the counter is already at 1, calling ref() is wrong.

* Source/WebCore/css/CSSSelector.cpp:
(WebCore::CSSSelector::CSSSelector):

Canonical link: https://commits.webkit.org/263859@main




More information about the webkit-changes mailing list