diff options
author | 2025-03-01 23:56:06 +0100 | |
---|---|---|
committer | 2025-03-01 23:56:06 +0100 | |
commit | 5ea6de69afcf11f2d2e59258cb055a5b1fdb5f82 (patch) | |
tree | adf925cb6b61b5279c2ad3627b2fd7bc48b34300 /src/Structure.cpp | |
parent | d40f03e4090edafea75f04a1697ef0384231d333 (diff) | |
download | libplist-5ea6de69afcf11f2d2e59258cb055a5b1fdb5f82.tar.gz libplist-5ea6de69afcf11f2d2e59258cb055a5b1fdb5f82.tar.bz2 |
C++: Use `free()` instead of `delete` for C things
Diffstat (limited to 'src/Structure.cpp')
-rw-r--r-- | src/Structure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Structure.cpp b/src/Structure.cpp index b33de96..f56b0e6 100644 --- a/src/Structure.cpp +++ b/src/Structure.cpp @@ -57,7 +57,7 @@ std::string Structure::ToXml() const uint32_t length = 0; plist_to_xml(_node, &xml, &length); std::string ret(xml, xml+length); - delete xml; + free(xml); return ret; } @@ -67,7 +67,7 @@ std::vector<char> Structure::ToBin() const uint32_t length = 0; plist_to_bin(_node, &bin, &length); std::vector<char> ret(bin, bin+length); - delete bin; + free(bin); return ret; } |