[SourceEditor] Free up text editor extensions on destroy.