summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 5f62480ef..89d4ad8e0 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1292,6 +1292,9 @@ void Fl_Window::hide() {
Fl_Window::~Fl_Window() {
hide();
+ if (xclass_) {
+ free(xclass_);
+ }
}
// FL_SHOW and FL_HIDE are called whenever the visibility of this widget