You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In renderwindow.cpp, there are some functions that render text, specifically the function "renderCenter" and the last overload of "render" (the one that starts on line 87). I noticed that they create an sdl_surface and copy it to an sdl_texture. The surface is freed at the end by a call to SDL_FreeSurface, but there is no call to SDL_DestroyTexture for the texture.
This leaks memory significantly slower than Twini-Golf did, which is why it probably hasn't been noticed.
The text was updated successfully, but these errors were encountered:
In renderwindow.cpp, there are some functions that render text, specifically the function "renderCenter" and the last overload of "render" (the one that starts on line 87). I noticed that they create an sdl_surface and copy it to an sdl_texture. The surface is freed at the end by a call to SDL_FreeSurface, but there is no call to SDL_DestroyTexture for the texture.
This leaks memory significantly slower than Twini-Golf did, which is why it probably hasn't been noticed.
The text was updated successfully, but these errors were encountered: