Original Post
I'm writing code to load my map files, and when I exit the program, I get about 150 2kb memory leaks in the debug window. FILE * map; map = fopen(filename.c_str(), "rb"); fscanf(map, "%d", &numtiles); BYTE * image = new BYTE[32*32*3*numtiles]; // when I comment this out, I get no memory leaks fread(image, sizeof(BYTE), 32*32*3*numtiles, map); // do some other stuff delete [] image; fclose(map); How do I remove these memory leaks? Thanks! -Shane