diff options
author | Nikias Bassen | 2018-09-03 17:29:53 +0200 |
---|---|---|
committer | Nikias Bassen | 2018-09-03 17:29:53 +0200 |
commit | fb71aeef10488ed7b0e60a1c8a553193301428c0 (patch) | |
tree | 50163a142d491c7ba36696e348575cd002ba63f1 | |
parent | a00b019c4421ce4937a45a0529d3e3b369876cef (diff) | |
download | libimobiledevice-fb71aeef10488ed7b0e60a1c8a553193301428c0.tar.gz libimobiledevice-fb71aeef10488ed7b0e60a1c8a553193301428c0.tar.bz2 |
idevicebackup2: Make sure iTunesSettings are correctly stored in Info.plist (i.e. not freed before writing)
-rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index e4bcdb9..7fb67df 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -479,7 +479,7 @@ static plist_t mobilebackup_factory_info_plist_new(const char* udid, idevice_t d } plist_dict_set_item(ret, "iTunes Files", files); - plist_dict_set_item(ret, "iTunes Settings", itunes_settings ? itunes_settings : plist_new_dict()); + plist_dict_set_item(ret, "iTunes Settings", itunes_settings ? plist_copy(itunes_settings) : plist_new_dict()); /* since we usually don't have iTunes, let's get the minimum required iTunes version from the device */ if (min_itunes_version) { |