Fixed memory leak on quick export