mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Release text storage only if text view class is MMTextView
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user