From f573d931f1777e47e8ad5e5415b7170dfa0af579 Mon Sep 17 00:00:00 2001 From: NatsuDrag9 Date: Thu, 28 Jun 2018 17:27:37 +0530 Subject: Ported lutdialog.cpp --- ldmicro/lib/linuxUI/linuxUI.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ldmicro/lib/linuxUI/linuxUI.cpp') diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp index d7248b7..64f7690 100644 --- a/ldmicro/lib/linuxUI/linuxUI.cpp +++ b/ldmicro/lib/linuxUI/linuxUI.cpp @@ -531,5 +531,8 @@ BOOL KillTimer(HWID hWid, UINT uIDEvent) void DestroyWindow (HWID widget) { - gtk_widget_destroy (widget); + if (GTK_IS_WIDGET(widget)) + { + gtk_widget_destroy (widget); + } } -- cgit