diff --git a/src/MacVim/MMVimView.m b/src/MacVim/MMVimView.m index c76b100a87..79c134befd 100644 --- a/src/MacVim/MMVimView.m +++ b/src/MacVim/MMVimView.m @@ -158,8 +158,7 @@ enum { // HACK! The text storage is the principal owner of the text system, but we // keep only a reference to the text view, so release the text storage // first (unless we are using the ATSUI renderer). - if (![[NSUserDefaults standardUserDefaults] - boolForKey:MMAtsuiRendererKey]) + if ([textView isKindOfClass:[MMTextView class]]) [[textView textStorage] release]; [textView release]; textView = nil;