[webkit-changes] [WebKit/WebKit] 592d77: [GStreamer] De-initialize only if leaks tracer is ...

Philippe Normand noreply at github.com
Fri Feb 16 02:12:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 592d7746b7a94b9cc19b62fcf156d0de3978487a
      https://github.com/WebKit/WebKit/commit/592d7746b7a94b9cc19b62fcf156d0de3978487a
  Author: Philippe Normand <philn at igalia.com>
  Date:   2024-02-16 (Fri, 16 Feb 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp
    M Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h
    M Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp

  Log Message:
  -----------
  [GStreamer] De-initialize only if leaks tracer is active
https://bugs.webkit.org/show_bug.cgi?id=268977

Reviewed by Xabier Rodriguez-Calvar.

The `gst_deinit()` call is useful only if the leaks tracer is active. Otherwise resources will be
freed anyway when the WebProcess terminates.

* Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp:
(WTF::adoptGRef):
(WTF::refGPtr<GstTracer>):
(WTF::derefGPtr<GstTracer>):
* Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h:
* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
(WebCore::deinitializeGStreamer):

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




More information about the webkit-changes mailing list