From c249933075989b34eb2993c12df0897e712cc2ce Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 18 Nov 2017 18:12:18 +0000 Subject: [PATCH] Fix illegal memory access after free when closing fluid (STR #3427). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ fluid/fluid.cxx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 1c3818f09..0884d2279 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,8 @@ CHANGES IN FLTK 1.3.5 RELEASED: ??? ?? 2017 Bug fixes and other improvements + - Fix illegal memory access after free when closing fluid (valgrind + reports "Invalid read of size 4"), see also STR #3427. - Fix crash when closing fluid with Fl_Table (STR #3427). - Fix ignored buffer pre-allocation (requestedSize) in Fl_Text_Buffer. See fltk.general "Fl_Text_Buffer constructor bug" on Dec 5, 2016. diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 089509431..43eb07133 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -3,7 +3,7 @@ // // FLUID main entry for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2016 by Bill Spitzak and others. +// Copyright 1998-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -441,6 +441,7 @@ void exit_cb(Fl_Widget *,void *) { svp.set("tab", sv_tab->find(sv_tab->value())); save_position(sourceview_panel,"sourceview_pos"); delete sourceview_panel; + sourceview_panel = 0; } if (about_panel) delete about_panel;