diff --git a/src/cfl_tree.cpp b/src/cfl_tree.cpp index 17a64eb..11983b2 100644 --- a/src/cfl_tree.cpp +++ b/src/cfl_tree.cpp @@ -418,7 +418,7 @@ void *Fl_Tree_openicon(const Fl_Tree *self) { void Fl_Tree_set_openicon(Fl_Tree *self, void *val) { LOCK(auto old = self->openicon(); if (!val) self->openicon(nullptr); else self->openicon(((Fl_Image *)val)->copy()); - delete old;) + ) } void *Fl_Tree_closeicon(const Fl_Tree *self) { @@ -432,7 +432,7 @@ void *Fl_Tree_closeicon(const Fl_Tree *self) { void Fl_Tree_set_closeicon(Fl_Tree *self, void *val) { LOCK(auto old = self->closeicon(); if (!val) self->closeicon(nullptr); else self->closeicon(((Fl_Image *)val)->copy()); - delete old;) + ) } int Fl_Tree_showcollapse(const Fl_Tree *self) {