Remove some extra memory allocations
authorArkadiy Illarionov <qarkai@gmail.com>
Fri, 18 Aug 2023 20:41:34 +0000 (23:41 +0300)
committerColin Clark <colin.clark@cclark.uk>
Sat, 19 Aug 2023 07:54:57 +0000 (08:54 +0100)
commit23b572011e0bfc94d819f971d2f05c45e3ccd77c
tree135cdd2c9341e0dce1a2c5d16e805ff0668a36c3
parent4226d93c9050a64a1a7615b0ebf8275a69a32584
Remove some extra memory allocations

- Use g_string_free(string, FALSE). Also use len member instead of strlen(string->str).
- Use string literals instead of building string for resources' paths.
16 files changed:
src/collect-io.cc
src/collect-table.cc
src/dupe.cc
src/exif-common.cc
src/exif.cc
src/image-load-collection.cc
src/image-overlay.cc
src/layout.cc
src/misc.cc
src/osd.cc
src/pixbuf-renderer.cc
src/preferences.cc
src/search-and-run.cc
src/ui-fileops.cc
src/ui-utildlg.cc
src/utilops.cc