From da4d16b1f2ade468d375fce7c5f5c79b51e5478a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 13 Oct 2023 09:47:22 -0600 Subject: [PATCH] launchpad pro: remember to destroy GUI to avoid use-after-free in its connection handler --- libs/surfaces/launchpad_pro/lppro.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/surfaces/launchpad_pro/lppro.cc b/libs/surfaces/launchpad_pro/lppro.cc index e0cd74660d..746c17c0a6 100644 --- a/libs/surfaces/launchpad_pro/lppro.cc +++ b/libs/surfaces/launchpad_pro/lppro.cc @@ -173,8 +173,10 @@ LaunchPadPro::~LaunchPadPro () } stop_event_loop (); + tear_down_gui (); MIDISurface::drop (); + } void