diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-09-27 05:40:54 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-09-27 05:40:54 -0400 |
commit | d39c862f856f45f83cd11ac5eb127a0b826a5b3f (patch) | |
tree | c356821bbeabbf0c6890e405abc34b97e9b67a5d /etc | |
parent | a2b76b69ca1a29e40616d9279a25f9dd22a81127 (diff) |
Automate memory management in JPEG2KEncode and JPEG2KDecode.
Instead of using strdup() and free() to store comment_text in JPEG2KEncode,
store a std::string. Similarly, instead of manually managing pointers to
encoder, decoder, image, stream and codestream_info in JPEG2KDecode and
JPEG2KEncode, use std::unique_ptr for each, specifying their respective
deleter functions.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions