[BUG] BMP memory leak