Fixed memory leak in ScreenCapperMock