I've never seen that many memory leaks in such short amount of code in my life. People from youtube that come here, please only look at structures and don't copy the code 1:1.
I approuve this, back when i wrote this i was not experienced in C/C++ and had no idea what the fuck i was doing. I'm currently learning C / C++ and maybe i'll have a go at fixing it.
I've never seen that many memory leaks in such short amount of code in my life. People from youtube that come here, please only look at structures and don't copy the code 1:1.