mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
fix destroy_apk_queue as we're currently on the stak
This commit is contained in:
parent
61f564769c
commit
bf0b91c444
1 changed files with 1 additions and 5 deletions
|
@ -25,11 +25,7 @@ SDL_bool apk_queue_init(struct apk_queue *queue) {
|
|||
}
|
||||
|
||||
void apk_queue_destroy(struct apk_queue *queue) {
|
||||
int i = queue->tail;
|
||||
while (i != queue->head) {
|
||||
SDL_free(&queue->data[i]);
|
||||
i = (i + 1) % APK_QUEUE_SIZE;
|
||||
}
|
||||
// do nothing as we are on the stack
|
||||
}
|
||||
|
||||
SDL_bool apk_queue_push(struct apk_queue *queue, const char *apk) {
|
||||
|
|
Loading…
Add table
Reference in a new issue