From 98920ea806e9914bb4085cb80748eed0c5ffc8fa Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 13 May 2013 22:51:05 +0200 Subject: Fix crash bug on GUI close in QTractor. --- lv2/lv2_gui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lv2') 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) -- cgit v1.2.3