valgrind: Fix two memory leaks in toolbar
This commit is contained in:
@@ -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 ()
|
||||
|
Reference in New Issue
Block a user