What are some of the common problems that cause memory leaks?
would the char* in this cause one?
unsigned int loadtex(char*name) {
unsigned int img,texture;
ilGenImages(1, &img); ilBindImage(img); ilLoad(IL_JPG,name); texture = ilutGLBindMipmaps();
ilDeleteImages(1, &img);
return texture;
}