Fixed terrible IplImage memory leak