diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 129971109..edc3ac3fe 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -2690,7 +2690,6 @@ void Fl_Help_View::follow_link(Fl_Help_Link *linkp) char target[32]; // Current target clear_selection(); - free_data(); strlcpy(target, linkp->name, sizeof(target)); @@ -3161,7 +3160,6 @@ Fl_Help_View::load(const char *f)// I - Filename to load (may also have target) } clear_selection(); - free_data(); strlcpy(newname, f, sizeof(newname)); if ((target = strrchr(newname, '#')) != NULL) @@ -3175,6 +3173,8 @@ Fl_Help_View::load(const char *f)// I - Filename to load (may also have target) if (!localname) return (0); + free_data(); + strlcpy(filename_, newname, sizeof(filename_)); strlcpy(directory_, newname, sizeof(directory_));