Fixed memory leak (Peter de Kraker)