From db90ab6bb9e65c6076308234d4e1e21586cbde17 Mon Sep 17 00:00:00 2001 From: rfm Date: Fri, 5 Jan 2024 08:22:24 +0000 Subject: [PATCH] fix leak spotted by Larry Campbell --- Source/NSNotificationCenter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSNotificationCenter.m b/Source/NSNotificationCenter.m index 70129b2b6..3b6bf08f7 100644 --- a/Source/NSNotificationCenter.m +++ b/Source/NSNotificationCenter.m @@ -869,7 +869,7 @@ static NSNotificationCenter *default_center = nil; name: name object: object]; - return observer; + return AUTORELEASE(observer); } /**