summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-09-03 17:29:53 +0200
committerGravatar Nikias Bassen2018-09-03 17:29:53 +0200
commitfb71aeef10488ed7b0e60a1c8a553193301428c0 (patch)
tree50163a142d491c7ba36696e348575cd002ba63f1 /tools
parenta00b019c4421ce4937a45a0529d3e3b369876cef (diff)
downloadlibimobiledevice-fb71aeef10488ed7b0e60a1c8a553193301428c0.tar.gz
libimobiledevice-fb71aeef10488ed7b0e60a1c8a553193301428c0.tar.bz2
idevicebackup2: Make sure iTunesSettings are correctly stored in Info.plist (i.e. not freed before writing)
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup2.c2
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) {