ref: df534bb612be4bd8209b753f142d2e760551f6fb
parent: 1cc3d7fe305cbf6ed8f1e5a8b484ae45cd00ed4c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Jan 6 09:48:08 EST 2020
Fix SDLTexture backend's linked-list Was causing some use-after-free behaviour, according to valgrind. Should fix #87
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -116,6 +116,9 @@
surface->next = surface_list_head;
surface_list_head = surface;
+ if (surface->next != NULL)
+ surface->next->prev = surface;
+
return surface;
}
--
⑨