Fixed layer list memory leak.