summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Device.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H
index 5b6970fab..f008730c7 100644
--- a/FL/Fl_Device.H
+++ b/FL/Fl_Device.H
@@ -386,7 +386,7 @@ public:
/** Sets the current Fl_Font_Descriptor for the graphics driver */
inline void font_descriptor(Fl_Font_Descriptor *d) { font_descriptor_ = d;}
/** \brief The destructor */
- virtual ~Fl_Graphics_Driver() {};
+ virtual ~Fl_Graphics_Driver() { if (p) free(p); };
};
#if defined(__APPLE__) || defined(FL_DOXYGEN)