* fixed a memory leak

* Modules/Editors/ProjectCenter/PCEditor.m:
  - replaced RETAIN() with ASSIGN() to avoid memory leaking;
This commit is contained in:
Sergei Golovin 2021-11-29 12:20:33 +04:00
parent 377359a92f
commit d63d77b98e

View file

@ -310,8 +310,7 @@
textBackgroundColor = readOnlyColor;
}
textColor = [prefs colorForKey:EditorForegroundColor defaultValue:textColor];
RETAIN(textColor);
ASSIGN(textColor, [prefs colorForKey:EditorForegroundColor defaultValue:textColor]);
[attributes setObject:font forKey:NSFontAttributeName];
[attributes setObject:textBackgroundColor forKey:NSBackgroundColorAttributeName];