Fixed memory leak when importing comments