13
0

push2: cleanup layouts

This commit is contained in:
Paul Davis 2016-07-10 10:59:08 -04:00
parent 14d80ec5f8
commit 8e63685724

View File

@ -303,6 +303,13 @@ Push2::close ()
periodic_connection.disconnect (); periodic_connection.disconnect ();
session_connections.drop_connections (); session_connections.drop_connections ();
_current_layout = 0;
drawn_layout = 0;
delete mix_layout;
mix_layout = 0;
delete scale_layout;
scale_layout = 0;
if (handle) { if (handle) {
libusb_release_interface (handle, 0x00); libusb_release_interface (handle, 0x00);
libusb_close (handle); libusb_close (handle);