summaryrefslogtreecommitdiffstats
path: root/scripts/windows-container
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-12-11 21:58:45 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-12-11 23:59:30 +0200
commit779e33be5d394347ddf1d30dfde4e5621fe40578 (patch)
tree14f971004a80b12d2417cc7e826f772fdfa8e7f0 /scripts/windows-container
parentb75081cc592df6ec074b1a5cf5e5b1c8c62a8780 (diff)
downloadsubsurface-779e33be5d394347ddf1d30dfde4e5621fe40578.tar.gz
Cleanup: don't leak filename on picture creation
dive_create_picture() is called from DiveListView::matchImagesToDives() with a copy of the picture-filename. But: - On error the filename is not freed - On success the filename is strdup()ed Thus, in all cases the memory is lost. Instead, pass in a temporary buffer using qPrintable(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'scripts/windows-container')
0 files changed, 0 insertions, 0 deletions