diff --git a/src/app/ui/draggable_widget.h b/src/app/ui/draggable_widget.h index 1c6e7f74f..19404331f 100644 --- a/src/app/ui/draggable_widget.h +++ b/src/app/ui/draggable_widget.h @@ -1,5 +1,5 @@ // Aseprite -// Copyright (C) 2018-2021 Igara Studio S.A. +// Copyright (C) 2018-2022 Igara Studio S.A. // // This program is distributed under the terms of // the End-User License Agreement for Aseprite. @@ -26,6 +26,11 @@ public: template DraggableWidget(Args...args) : Base(args...) { } + ~DraggableWidget() { + if (m_floatingOverlay) + destroyFloatingOverlay(); + } + bool onProcessMessage(ui::Message* msg) override { switch (msg->type()) {