Changeset 229526 in webkit


Ignore:
Timestamp:
Mar 12, 2018 2:28:26 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r229525 - [GTK] Crash in WebCore::PlatformDisplayWayland::~PlatformDisplayWayland
https://bugs.webkit.org/show_bug.cgi?id=176490

Reviewed by Žan Doberšek.

Destroy the wl_display with wl_display_disconnect() (client process API), not
wl_display_destroy() (server process API). It has to be destroyed last, so explicitly
destroy the wl_registry and wl_compositor first.

  • platform/graphics/wayland/PlatformDisplayWayland.cpp:

(WebCore::PlatformDisplayWayland::~PlatformDisplayWayland):

Location:
releases/WebKitGTK/webkit-2.20/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.20/Source/WebCore/ChangeLog

    r229273 r229526  
     12018-03-12  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Crash in WebCore::PlatformDisplayWayland::~PlatformDisplayWayland
     4        https://bugs.webkit.org/show_bug.cgi?id=176490
     5
     6        Reviewed by Žan Doberšek.
     7
     8        Destroy the wl_display with wl_display_disconnect() (client process API), not
     9        wl_display_destroy() (server process API). It has to be destroyed last, so explicitly
     10        destroy the wl_registry and wl_compositor first.
     11
     12        * platform/graphics/wayland/PlatformDisplayWayland.cpp:
     13        (WebCore::PlatformDisplayWayland::~PlatformDisplayWayland):
     14
    1152018-03-01  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • releases/WebKitGTK/webkit-2.20/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp

    r217838 r229526  
    6868PlatformDisplayWayland::~PlatformDisplayWayland()
    6969{
    70     if (m_nativeDisplayOwned == NativeDisplayOwned::Yes)
    71         wl_display_destroy(m_display);
     70    if (m_nativeDisplayOwned == NativeDisplayOwned::Yes) {
     71        m_compositor = nullptr;
     72        m_registry = nullptr;
     73        wl_display_disconnect(m_display);
     74    }
    7275}
    7376
Note: See TracChangeset for help on using the changeset viewer.