private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { //Remove all ItemViews of this window from the manager list. NotificationBox?.RemoveAllViews(); _encoder = null; GC.Collect(); //Display the encodings in the editor. EncodingManager.MoveEncodingsToPopups(); }