Skip to content

Commit

Permalink
Add deletion code for Fl_X11_Window_Driver object
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Mar 10, 2016
1 parent 11d3888 commit 1d7ce6a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Fl_Window.cxx
Expand Up @@ -92,6 +92,7 @@ Fl_Window::~Fl_Window() {
}
free_icons();
delete icon_;
delete pWindowDriver;
}


Expand Down
1 change: 1 addition & 0 deletions src/drivers/X11/Fl_X11_Window_Driver.H
Expand Up @@ -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();
Expand Down
8 changes: 8 additions & 0 deletions src/drivers/X11/Fl_X11_Window_Driver.cxx
Expand Up @@ -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);
Expand Down

0 comments on commit 1d7ce6a

Please sign in to comment.