summaryrefslogtreecommitdiff
path: root/lv2/lv2_gui.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-13 22:51:05 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-13 22:51:05 +0200
commit98920ea806e9914bb4085cb80748eed0c5ffc8fa (patch)
tree1e13e95a6b5bae956fa6699197132f85b40a3046 /lv2/lv2_gui.cc
parent24032cfb4a4c1a37c722afb8ec1aa7c83ad5488f (diff)
Fix crash bug on GUI close in QTractor.
Diffstat (limited to 'lv2/lv2_gui.cc')
-rw-r--r--lv2/lv2_gui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lv2/lv2_gui.cc b/lv2/lv2_gui.cc
index ecdb7d0..7d9cfbf 100644
--- a/lv2/lv2_gui.cc
+++ b/lv2/lv2_gui.cc
@@ -133,7 +133,7 @@ static void ui_show(struct lv2_external_ui * _this_)
static void ui_hide(struct lv2_external_ui * _this_)
{
struct DG_GUI *dggui = (struct DG_GUI *)_this_;
- dggui->gui->hide();
+ if(dggui->gui) dggui->gui->hide();
}
static void closeHandler(void *ptr)