On Windows, the macros COPY, REMOVE and REMOVE_DIR are allocated strings, unlike on other platforms, so the way we use these returned values, they are never freed. Instead make win32_command() keep a copy of the allocated string as static to the function and free it there at each next call (the returned value being type-casted to (const gchar *)). It will still leak the last string, but anyway gimptool is short-lived. Also it should silence static analyzers. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| compute-svg-viewbox.c | ||
| defcheck.py | ||
| extract-vector-icon.sh | ||
| generate-news | ||
| generate_changelog.sh | ||
| gimp-debug-resume.c | ||
| gimp-mkenums | ||
| gimp-test-clipboard.c | ||
| gimppath2svg.py | ||
| gimptool.c | ||
| kernelgen.c | ||
| Makefile.am | ||
| meson.build | ||
| meson_install_subdir.py | ||
| mnemonic-clashes | ||
| module-dependencies.py | ||
| performance-log-close-tags.py | ||
| performance-log-coalesce.py | ||
| performance-log-deduce.py | ||
| performance-log-expand.py | ||
| performance-log-progressive-coalesce.py | ||
| performance-log-resolve.py | ||
| performance-log-viewer | ||
| performance-log-viewer.py | ||