diff --git a/app/src/apkinstaller.c b/app/src/apkinstaller.c index 001f6111..5ef9345a 100644 --- a/app/src/apkinstaller.c +++ b/app/src/apkinstaller.c @@ -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) {