Add deletion code for Fl_X11_Window_Driver object
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
11d3888fc2
commit
1d7ce6ad41
@ -92,6 +92,7 @@ Fl_Window::~Fl_Window() {
|
||||
}
|
||||
free_icons();
|
||||
delete icon_;
|
||||
delete pWindowDriver;
|
||||
}
|
||||
|
||||
|
||||
|
@ -58,6 +58,7 @@ private:
|
||||
void shape_alpha_(Fl_Image* img, int offset);
|
||||
public:
|
||||
Fl_X11_Window_Driver(Fl_Window*);
|
||||
~Fl_X11_Window_Driver();
|
||||
virtual void take_focus();
|
||||
virtual void shape(const Fl_Image* img);
|
||||
virtual void draw();
|
||||
|
@ -59,6 +59,14 @@ Fl_X11_Window_Driver::Fl_X11_Window_Driver(Fl_Window *win)
|
||||
}
|
||||
|
||||
|
||||
Fl_X11_Window_Driver::~Fl_X11_Window_Driver()
|
||||
{
|
||||
if (shape_data_) {
|
||||
delete shape_data_->todelete_;
|
||||
delete shape_data_;
|
||||
}
|
||||
}
|
||||
|
||||
void Fl_X11_Window_Driver::take_focus()
|
||||
{
|
||||
Fl_X *i = Fl_X::i(pWindow);
|
||||
|
Loading…
Reference in New Issue
Block a user