ref: b8dd512dc4de53d2b256bec31a4ac26f54b86e79
parent: d7c138f8186409344bb19257103d80ee9952025d
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Apr 23 10:34:58 EDT 2020
Free surface upon failure
--- a/src/Backends/Rendering/WiiU.cpp
+++ b/src/Backends/Rendering/WiiU.cpp
@@ -196,6 +196,8 @@
{
Backend_PrintError("Couldn't allocate memory for the GX2 context");
}
+
+ RenderBackend_FreeSurface(framebuffer_surface);
}
else
{