Add virtual destructor to Fl_Screen_Driver.

This is safer because Fl_Screen_Driver has virtual member functions and derived classes.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-02-26 13:41:48 +00:00
parent 682f950796
commit 53993d4bd1
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class FL_EXPORT Fl_Screen_Driver {
protected:
Fl_Screen_Driver();
virtual ~Fl_Screen_Driver();
static const int MAX_SCREENS = 16;

View File

@ -32,6 +32,9 @@ num_screens(-1)
{
}
Fl_Screen_Driver::~Fl_Screen_Driver() {
}
void Fl_Screen_Driver::display(const char *) {
// blank