I'm writing a lot of SDL code right now, and though my program runs perfectly fine, but when (and only when) the function to free my outline font files(.ttf) is called, my program returns 3 after the program shuts down. There is no run time error or logic error, and the program seems to run perfectly normal. I'm really clueless as to why this would be. Can anyone help out?
After testing I found that each one of the three calls to void OutlineFont::free() will return 3. Calling only 1 of them, 2 of them, or all 3 of them makes no difference in the return value.