diff options
Diffstat (limited to 'dev/ideviceclient.c')
| -rw-r--r-- | dev/ideviceclient.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/ideviceclient.c b/dev/ideviceclient.c index d952594..0400fed 100644 --- a/dev/ideviceclient.c +++ b/dev/ideviceclient.c | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 24 | #include <string.h> | 24 | #include <string.h> |
| 25 | #include <errno.h> | 25 | #include <errno.h> |
| 26 | #include <glib.h> | ||
| 27 | 26 | ||
| 28 | #include <libimobiledevice/libimobiledevice.h> | 27 | #include <libimobiledevice/libimobiledevice.h> |
| 29 | #include <libimobiledevice/lockdown.h> | 28 | #include <libimobiledevice/lockdown.h> |
| @@ -138,18 +137,20 @@ int main(int argc, char *argv[]) | |||
| 138 | printf("Directory time.\n"); | 137 | printf("Directory time.\n"); |
| 139 | for (i = 0; dirs[i]; i++) { | 138 | for (i = 0; dirs[i]; i++) { |
| 140 | printf("/%s\n", dirs[i]); | 139 | printf("/%s\n", dirs[i]); |
| 140 | free(dirs[i]); | ||
| 141 | } | 141 | } |
| 142 | 142 | if (dirs) | |
| 143 | g_strfreev(dirs); | 143 | free(dirs); |
| 144 | 144 | ||
| 145 | dirs = NULL; | 145 | dirs = NULL; |
| 146 | afc_get_device_info(afc, &dirs); | 146 | afc_get_device_info(afc, &dirs); |
| 147 | if (dirs) { | 147 | if (dirs) { |
| 148 | for (i = 0; dirs[i]; i += 2) { | 148 | for (i = 0; dirs[i]; i += 2) { |
| 149 | printf("%s: %s\n", dirs[i], dirs[i + 1]); | 149 | printf("%s: %s\n", dirs[i], dirs[i + 1]); |
| 150 | free(dirs[i]); | ||
| 150 | } | 151 | } |
| 152 | free(dirs); | ||
| 151 | } | 153 | } |
| 152 | g_strfreev(dirs); | ||
| 153 | 154 | ||
| 154 | uint64_t my_file = 0; | 155 | uint64_t my_file = 0; |
| 155 | char **info = NULL; | 156 | char **info = NULL; |
