diff --git a/tests/cefclient/cefclient_osr_widget_gtk.cpp b/tests/cefclient/cefclient_osr_widget_gtk.cpp index c67a8c7e2..373ef1ab4 100644 --- a/tests/cefclient/cefclient_osr_widget_gtk.cpp +++ b/tests/cefclient/cefclient_osr_widget_gtk.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -258,7 +259,8 @@ CefRefPtr OSRWindow::From( void OSRWindow::OnBeforeClose(CefRefPtr browser) { // Disconnect all signal handlers that reference |this|. - g_signal_handlers_disconnect_by_data(glarea_, this); + g_signal_handlers_disconnect_matched(glarea_, G_SIGNAL_MATCH_DATA, 0, 0, + NULL, NULL, this); DisableGL(); }