libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
528 stars 304 forks source link

fix String::GetValue memory leaking and suport assignment of const char* #256

Open guyingzhao opened 4 months ago

guyingzhao commented 4 months ago
  1. change delete to free since plist_get_string_val allocate memory with malloc
  2. support assigning String by const char* to avoid memory duplication