summaryrefslogtreecommitdiff
path: root/ldmicro/lib/linuxUI
diff options
context:
space:
mode:
authorNatsuDrag92018-06-28 17:27:37 +0530
committerNatsuDrag92018-06-28 17:27:37 +0530
commitf573d931f1777e47e8ad5e5415b7170dfa0af579 (patch)
tree1ed4285cf392ae4daca82370d1d5b97d532d1ca1 /ldmicro/lib/linuxUI
parent30452e21785776a6f479d16099dcb2318a48d641 (diff)
downloadLDMicroGtk-f573d931f1777e47e8ad5e5415b7170dfa0af579.tar.gz
LDMicroGtk-f573d931f1777e47e8ad5e5415b7170dfa0af579.tar.bz2
LDMicroGtk-f573d931f1777e47e8ad5e5415b7170dfa0af579.zip
Ported lutdialog.cpp
Diffstat (limited to 'ldmicro/lib/linuxUI')
-rw-r--r--ldmicro/lib/linuxUI/linuxUI.cpp5
1 files changed, 4 insertions, 1 deletions
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);
+ }
}