libimobiledevice / libplist

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

Problems of memory release in Win32 #172

Closed AiXanadu closed 3 years ago

AiXanadu commented 3 years ago

The following uses machine translation

In Win32, an exception is caused when one module provides memory and another module frees it.

So, can we consider adding plist free xml(void XML) and plist free_ bin(void _ bin) ?

I found that most of the mainstream open source libraries adopt this model.

nikias commented 3 years ago

See: https://github.com/libimobiledevice/libplist/blob/master/include/plist/plist.h#L653 https://github.com/libimobiledevice/libplist/blob/master/include/plist/plist.h#L670

AiXanadu commented 3 years ago

@nikias I'm sorry, I'm still using version 2.0.0, which has delayed your time.