Skip to content

Commit

Permalink
FLUID: fixing autodocs file leak and memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWM committed Nov 19, 2024
1 parent c6d4803 commit 6df2219
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions fluid/autodoc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ static int convert_RGB_to_RGBA(Fl_RGB_Image *&img) {
delete img;
// Create the new image
img = new Fl_RGB_Image(data, img_w, img_h, 4);
delete[] data;
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions fluid/fluid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,8 @@ int main(int argc,char **argv) {
// check if the user wants FLUID to generate image for the user documentation
if (!g_autodoc_path.empty()) {
run_autodoc(g_autodoc_path);
set_modflag(0, 0);
exit_cb(0,0);
return 0;
}
#endif
Expand Down

0 comments on commit 6df2219

Please sign in to comment.