mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-27 20:56:43 +00:00
free installer's queue
This commit is contained in:
parent
34183ad1a6
commit
9f4681dc57
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ SDL_bool apk_queue_init(struct apk_queue *queue) {
|
|||
}
|
||||
|
||||
void apk_queue_destroy(struct apk_queue *queue) {
|
||||
// do nothing as we are on the stack
|
||||
int i = queue->tail;
|
||||
while (i != queue->head) {
|
||||
SDL_free(queue->data[i]);
|
||||
i = (i + 1) % APK_QUEUE_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
SDL_bool apk_queue_push(struct apk_queue *queue, const char *apk) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue