|
|
|
@ -147,7 +147,7 @@ adb_push(const char *serial, const char *local, const char *remote) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
remote = strquote(remote);
|
|
|
|
remote = strquote(remote);
|
|
|
|
if (!remote) {
|
|
|
|
if (!remote) {
|
|
|
|
free((void *) local);
|
|
|
|
SDL_free((void *) local);
|
|
|
|
return PROCESS_NONE;
|
|
|
|
return PROCESS_NONE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
@ -156,8 +156,8 @@ adb_push(const char *serial, const char *local, const char *remote) {
|
|
|
|
process_t proc = adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
|
|
|
|
process_t proc = adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __WINDOWS__
|
|
|
|
#ifdef __WINDOWS__
|
|
|
|
free((void *) remote);
|
|
|
|
SDL_free((void *) remote);
|
|
|
|
free((void *) local);
|
|
|
|
SDL_free((void *) local);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
return proc;
|
|
|
|
return proc;
|
|
|
|
@ -178,7 +178,7 @@ adb_install(const char *serial, const char *local) {
|
|
|
|
process_t proc = adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
|
|
|
|
process_t proc = adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __WINDOWS__
|
|
|
|
#ifdef __WINDOWS__
|
|
|
|
free((void *) local);
|
|
|
|
SDL_free((void *) local);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
return proc;
|
|
|
|
return proc;
|
|
|
|
|