summaryrefslogtreecommitdiff
path: root/src/findbar.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-03 14:34:41 +0200
committerjcid <devnull@localhost>2008-09-03 14:34:41 +0200
commiteaab00ed0b648190ac1eef7fc166cb19dc98b880 (patch)
treead1e93756da05cf7db6bea6a16a8dba2e217de20 /src/findbar.cc
parent3e6aed4bf51baf13ff9d3ea2478291ad570ce3d0 (diff)
- Added the findbar destructor.
Diffstat (limited to 'src/findbar.cc')
-rw-r--r--src/findbar.cc9
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.
*/