diff options
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | src/Fl_Widget.cxx | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,7 @@ CHANGES IN FLTK 1.1.7 - Documentation fixes (STR #648, STR #692, STR #730, STR #744, STR #745) + - Fixed tiny memory leak (STR #878) - Fixed hang on corrupt jpeg (STR #915) - Fixed static allocation of font buffer in demo (STR #909) - Added symbols 'refresh', 'reload', 'undo', and 'redo'. diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index bf198d7dd..a94764346 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -253,6 +253,9 @@ int Fl_Widget::contains(const Fl_Widget *o) const { void Fl_Widget::label(const char *a) { if (flags() & COPIED_LABEL) { + // reassigning a copied label remains the same copied label + if (label_.value == a) + return; free((void *)(label_.value)); clear_flag(COPIED_LABEL); } |
