diff options
Diffstat (limited to 'src/findbar.cc')
-rw-r--r-- | src/findbar.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/findbar.cc b/src/findbar.cc index 4635caf7..4d95c431 100644 --- a/src/findbar.cc +++ b/src/findbar.cc @@ -9,7 +9,6 @@ * (at your option) any later version. */ -#include <fltk/xpmImage.h> #include <fltk/events.h> #include "findbar.hh" @@ -99,7 +98,8 @@ Findbar::Findbar(int width, int height, UI *ui) : begin(); hidebutton = new HighlightButton(x, border, 16, height, 0); - hidebutton->image(new xpmImage(new_s_xpm)); + hideImg = new xpmImage(new_s_xpm); + hidebutton->image(hideImg); hidebutton->tooltip("Hide"); x += 16 + gap; hidebutton->callback(hide_cb, this); @@ -125,6 +125,11 @@ Findbar::Findbar(int width, int height, UI *ui) : end(); } +Findbar::~Findbar() +{ + delete hideImg; +} + /* * Handle events. Used to catch EscapeKey events. */ |