I think I'm missing something though, because when opening multiple windows, each with their own renderer, and close them... the resources utilized in the RAM are not being de-allocated. This leads to a memory leak if you open the window more than once, since it re-allocates more memory when using the
At first I thought this was an issue with the windows being created, but after removing the renderer from the equation the memory issue went away. Edit : this wasn't the issue.
I found out that the render was not being de-allocated by the initial code example shown above, though the pointer does seem to equate to NULL.