sdl12-compat/sdl12-compat-1.2.60-Fixed-infinite-loop-in-SDL_FreeYUVOverlay.patch

31 lines
909 B
Diff
Raw Normal View History

From 683234e8708a081224942181710ca5dd3cee409e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <slouken@libsdl.org>
Date: Thu, 17 Nov 2022 07:55:07 -0800
Subject: [PATCH] Fixed infinite loop in SDL_FreeYUVOverlay()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes https://github.com/libsdl-org/sdl12-compat/issues/275
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
src/SDL12_compat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 6964e2b..fb657a6 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -7535,6 +7535,7 @@ SDL_FreeYUVOverlay(SDL12_Overlay *overlay12)
if (overlay->overlay12 == overlay12) {
overlay->overlay12 = NULL; /* don't try to draw this later. */
}
+ overlay = overlay->next;
}
if (renderer) {
--
2.39.2