Fixed memory leak in quick export