Original Post
blah.
struct myImage
{
Uint8 *pixels;
Uint16 width, height;
};
// in main
struct myImage *smiley;
// load an image
// memory is allocated for pixels in struct myImage
free( smiley->pixels );
for some reason, the line "free( smiley->pixels );" is giving me a compiler error. (the error is the subject of this post). any suggestions how to fix this?
- jeremiah