FLUID: another memory leak

This commit is contained in:
Matthias Melcher 2023-02-09 16:48:11 +01:00
parent 60be3e94cc
commit a3251b3208
2 changed files with 5 additions and 2 deletions

View File

@ -121,6 +121,9 @@ Fd_Project_Reader::Fd_Project_Reader()
/** \brief Release project reader resources. */ /** \brief Release project reader resources. */
Fd_Project_Reader::~Fd_Project_Reader() Fd_Project_Reader::~Fd_Project_Reader()
{ {
// fname is not copied, so do not free it
if (buffer)
::free(buffer);
} }
/** /**

View File

@ -17,7 +17,7 @@ comment {//
// //
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
} {selected in_source in_header } {in_source in_header
} }
decl {\#include "fluid.h"} {private local decl {\#include "fluid.h"} {private local
@ -496,7 +496,7 @@ Function {make_comment_panel()} {open
xywh {370 250 80 20} labelsize 11 hotspot xywh {370 250 80 20} labelsize 11 hotspot
} }
Fl_Button comment_panel_cancel { Fl_Button comment_panel_cancel {
label Cancel label Cancel selected
xywh {460 250 80 20} shortcut 0xff1b labelsize 11 xywh {460 250 80 20} shortcut 0xff1b labelsize 11
} }
Fl_Box {} { Fl_Box {} {