diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-09 20:57:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-10 17:06:09 +0000 |
commit | e3068e43679aa4d29e9c28ee056590769e021788 (patch) | |
tree | 1a174be227f4280926586fc53b71d825f736e5bd | |
parent | a01f4a1c317520a7a3090cfb2f1c9f21bbc50922 (diff) |
gtk4: occasional crash at exit
Change-Id: I2008d44f5dae0f22e9213f46a740146d6eb85666
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146703
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index e369b587b9b4..75b3f418c72e 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -18570,7 +18570,11 @@ public: virtual ~GtkInstanceDrawingArea() override { +#if GTK_CHECK_VERSION(4,0,0) + gtk_widget_remove_controller(m_pMouseEventBox, GTK_EVENT_CONTROLLER(m_pZoomGesture)); +#else g_clear_object(&m_pZoomGesture); +#endif ImplGetDefaultWindow()->RemoveEventListener(LINK(this, GtkInstanceDrawingArea, SettingsChangedHdl)); |