Added missing initialization/deallocation of member variables of class Fl_Graphics_Driver

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-02-16 13:09:34 +00:00
parent e3f407427c
commit 477febec7b
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -53,6 +53,7 @@ Fl_Graphics_Driver::Fl_Graphics_Driver() {
fl_matrix = &m;
p = (XPOINT *)0;
font_descriptor_ = NULL;
p_size = 0;
};
void Fl_Graphics_Driver::text_extents(const char*t, int n, int& dx, int& dy, int& w, int& h)