Since I've added a data structure with lists that is multiply copied and modified, for each tile and each building type, I've noticed that the program grows to and exceeds 1.8 GB of RAM until it reaches my computer's limit and crashes. But there isn't more than 30 items in the lists and I've tried Dr. memory but it doesn't show any leak. It crashes on SDL_SetWindowIcon for some reason under debugger and AppVerifier saying there's a problem accessing memory location in sdl2.dll or something. I've tried checking if memory is freed using GetProcessMemoryInfo and checking working set size but it doesn't decrease, even when I free an int pointer. Should it decrease?