summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-02-09 16:48:11 +0100
committerMatthias Melcher <github@matthiasm.com>2023-02-09 16:48:11 +0100
commita3251b3208744f77e2589eb36cbf2df2a15bee4f (patch)
tree3618ad22189da3c4f37462ab4f012dc736e992a3
parent60be3e94cc0726a0dab85efc857547908c75b84a (diff)
FLUID: another memory leak
-rw-r--r--fluid/file.cxx3
-rw-r--r--fluid/function_panel.fl4
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 {} {