From 32d82941547bb5bfce7fece49a1977f4b435434c Mon Sep 17 00:00:00 2001 From: rich2014 Date: Sat, 5 Oct 2024 01:18:51 +0800 Subject: [PATCH] Revert "Cocoa: fix memory leak in LegacyScroller #41171" This reverts commit e78f9e84ad6e594cd7af4e8412ea5bb347b62cd0. --- lcl/interfaces/cocoa/cocoascrollers.pas | 1 - 1 file changed, 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoascrollers.pas b/lcl/interfaces/cocoa/cocoascrollers.pas index 5715d48518..63b7325247 100644 --- a/lcl/interfaces/cocoa/cocoascrollers.pas +++ b/lcl/interfaces/cocoa/cocoascrollers.pas @@ -511,7 +511,6 @@ begin scrollBar:= TCocoaScrollBar(TCocoaScrollBar.alloc); manager:= TCocoaScrollStyleManagerLegacy.createForScrollBar; scrollBar.setManager( manager ); - scrollBar.autorelease; end; function allocScroller(parent: TCocoaManualScrollView; dst: NSRect; aVisible: Boolean)