Fix for possible memory leak.
Small fix for broken TGA images.