mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
macOS/Ghost: Fix memory leak.
`new` allocates a new object that needs to be autoreleased. Reviewed By: #platform_macos, sebbas, ankitm Maniphest Tasks: T86222 Differential Revision: https://developer.blender.org/D10597
This commit is contained in:
parent
b9bb69a114
commit
87c949a3bd
1 changed files with 2 additions and 2 deletions
|
|
@ -253,7 +253,7 @@
|
|||
|
||||
- (NSAttributedString *)attributedSubstringFromRange:(NSRange)range
|
||||
{
|
||||
return [NSAttributedString new]; // XXX does this leak?
|
||||
return [[[NSAttributedString alloc] init] autorelease];
|
||||
}
|
||||
|
||||
- (NSRange)markedRange
|
||||
|
|
@ -284,7 +284,7 @@
|
|||
|
||||
- (NSArray *)validAttributesForMarkedText
|
||||
{
|
||||
return [NSArray array]; // XXX does this leak?
|
||||
return [NSArray array];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue