From a3251b3208744f77e2589eb36cbf2df2a15bee4f Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 9 Feb 2023 16:48:11 +0100 Subject: FLUID: another memory leak --- fluid/file.cxx | 3 +++ fluid/function_panel.fl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fluid/file.cxx b/fluid/file.cxx index d8920e165..3d2d8745f 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -121,6 +121,9 @@ Fd_Project_Reader::Fd_Project_Reader() /** \brief Release project reader resources. */ Fd_Project_Reader::~Fd_Project_Reader() { + // fname is not copied, so do not free it + if (buffer) + ::free(buffer); } /** diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl index a5cf2ae4e..cbe505ccc 100644 --- a/fluid/function_panel.fl +++ b/fluid/function_panel.fl @@ -17,7 +17,7 @@ comment {// // // https://www.fltk.org/bugs.php // -} {selected in_source in_header +} {in_source in_header } decl {\#include "fluid.h"} {private local @@ -496,7 +496,7 @@ Function {make_comment_panel()} {open xywh {370 250 80 20} labelsize 11 hotspot } Fl_Button comment_panel_cancel { - label Cancel + label Cancel selected xywh {460 250 80 20} shortcut 0xff1b labelsize 11 } Fl_Box {} { -- cgit v1.2.3