diff options
| author | 2025-03-01 23:56:06 +0100 | |
|---|---|---|
| committer | 2025-03-01 23:56:06 +0100 | |
| commit | 5ea6de69afcf11f2d2e59258cb055a5b1fdb5f82 (patch) | |
| tree | adf925cb6b61b5279c2ad3627b2fd7bc48b34300 /src/Key.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/Key.cpp')
| -rw-r--r-- | src/Key.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Key.cpp b/src/Key.cpp index 79265d5..86a0bf8 100644 --- a/src/Key.cpp +++ b/src/Key.cpp | |||
| @@ -69,7 +69,7 @@ std::string Key::GetValue() const | |||
| 69 | char* s = NULL; | 69 | char* s = NULL; |
| 70 | plist_get_key_val(_node, &s); | 70 | plist_get_key_val(_node, &s); |
| 71 | std::string ret = s ? s : ""; | 71 | std::string ret = s ? s : ""; |
| 72 | delete s; | 72 | free(s); |
| 73 | return ret; | 73 | return ret; |
| 74 | } | 74 | } |
| 75 | 75 | ||
