mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 06:39:39 +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) {
|
void apk_queue_destroy(struct apk_queue *queue) {
|
||||||
int i = queue->tail;
|
// do nothing as we are on the stack
|
||||||
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) {
|
SDL_bool apk_queue_push(struct apk_queue *queue, const char *apk) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue