sdl12-compat: clear PendingKeydownEvent upon video quit - just in case

From d399e9b03630a1d2445563e13ea17623a233a303 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 15 Apr 2022 01:24:40 +0300
Subject: [PATCH] clear PendingKeydownEvent upon video quit - just in case

---
 src/SDL12_compat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 0b13d95..ff33fc2 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -2137,6 +2137,7 @@ Quit12Video(void)
     VideoInfoVfmt20 = NULL;
     EventFilter12 = NULL;
     EventQueueAvailable = EventQueueHead = EventQueueTail = NULL;
+    SDL20_memset(&PendingKeydownEvent, 0, sizeof(SDL12_Event));
     SDL_FreeCursor(CurrentCursor12);
     VideoModes = NULL;
     VideoModesCount = 0;