valgrind: Fix two memory leaks in toolbar

This commit is contained in:
heckflosse
2017-07-02 16:23:28 +02:00
parent 137450ce7a
commit aae7794587
2 changed files with 8 additions and 21 deletions

View File

@@ -39,10 +39,10 @@ public:
class ToolBar : public Gtk::HBox
{
private:
RTImage* handimg;
RTImage* editinghandimg;
RTImage* showcolpickersimg;
RTImage* hidecolpickersimg;
std::unique_ptr<RTImage> handimg;
std::unique_ptr<RTImage> editinghandimg;
std::unique_ptr<RTImage> showcolpickersimg;
std::unique_ptr<RTImage> hidecolpickersimg;
bool showColPickers;
void hand_pressed ();
@@ -72,7 +72,6 @@ protected:
public:
ToolBar ();
~ToolBar ();
void setTool (ToolMode tool);
ToolMode getTool ()