Free surface upon failure

This commit is contained in:
Clownacy 2020-04-23 14:34:58 +01:00
parent d7c138f818
commit b8dd512dc4

View file

@ -196,6 +196,8 @@ RenderBackend_Surface* RenderBackend_Init(const char *window_title, int screen_w
{
Backend_PrintError("Couldn't allocate memory for the GX2 context");
}
RenderBackend_FreeSurface(framebuffer_surface);
}
else
{