Prevent some memory leaks

This commit is contained in:
Sanel Zukan
2012-04-19 12:49:30 +00:00
parent 6b78cb3b0a
commit 8aa9d550b2
3 changed files with 26 additions and 5 deletions

View File

@@ -7,11 +7,15 @@
class TaskButton : public Fl_Button {
private:
/* window ID this button handles */
Window xid;
Atom net_wm_icon;
Window xid;
bool image_alloc;
Atom net_wm_icon;
void clear_image(void);
public:
TaskButton(int X, int Y, int W, int H, const char *l = 0);
~TaskButton();
void draw(void);
void display_menu(void);