From 4ddde5f4fa3f4b77c2ddf1d4848d06628d396842 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Apr 2013 02:11:25 +0300 Subject: fix random rare crashes in npc and possible other windows. --- src/gui/widgets/label.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/label.cpp') diff --git a/src/gui/widgets/label.cpp b/src/gui/widgets/label.cpp index 13eff1e7d..ad6daa81f 100644 --- a/src/gui/widgets/label.cpp +++ b/src/gui/widgets/label.cpp @@ -46,6 +46,9 @@ Label::Label(const Widget2 *const widget, const std::string &caption) : Label::~Label() { + if (gui) + gui->removeDragged(this); + mInstances --; if (mInstances == 0 && Theme::instance()) Theme::instance()->unload(mSkin); -- cgit v1.2.3-60-g2f50