shithub: cstory

Download patch

ref: 5e2846350913ceb3dd258aa61e1dc278d29d8b73
parent: 56b96ed432dc2e90d4cb57013f52069e82833319
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Sep 14 06:39:16 EDT 2020

Remember to free the upscaled framebuffer

--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -133,6 +133,9 @@
 
 void RenderBackend_Deinit(void)
 {
+	if (upscaled_framebuffer.texture != NULL)
+		SDL_DestroyTexture(upscaled_framebuffer.texture);
+
 	SDL_DestroyTexture(framebuffer.texture);
 	SDL_DestroyRenderer(renderer);
 	SDL_DestroyWindow(window);