Changeset 239499 in webkit


Ignore:
Timestamp:
Dec 21, 2018 2:53:17 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[GLIB] WebDriver: dbusConnectionClosedCallback can be called after SessionHost has been deleted
https://bugs.webkit.org/show_bug.cgi?id=192976

Reviewed by Alejandro G. Castro.

Disconnect DBus connection signals using SessionHost as user data in SessionHost destructor.

  • glib/SessionHostGlib.cpp:

(WebDriver::SessionHost::~SessionHost):

Location:
trunk/Source/WebDriver
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebDriver/ChangeLog

    r239461 r239499  
     12018-12-21  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GLIB] WebDriver: dbusConnectionClosedCallback can be called after SessionHost has been deleted
     4        https://bugs.webkit.org/show_bug.cgi?id=192976
     5
     6        Reviewed by Alejandro G. Castro.
     7
     8        Disconnect DBus connection signals using SessionHost as user data in SessionHost destructor.
     9
     10        * glib/SessionHostGlib.cpp:
     11        (WebDriver::SessionHost::~SessionHost):
     12
    1132018-12-20  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebDriver/glib/SessionHostGlib.cpp

    r239427 r239499  
    4242SessionHost::~SessionHost()
    4343{
     44    if (m_dbusConnection)
     45        g_signal_handlers_disconnect_matched(m_dbusConnection.get(), G_SIGNAL_MATCH_DATA, 0, 0, nullptr, nullptr, this);
    4446    g_cancellable_cancel(m_cancellable.get());
    4547    if (m_browser)
Note: See TracChangeset for help on using the changeset viewer.