From 36ba9c53f43531fa78d41bf1c4b94fc5b8da2467 Mon Sep 17 00:00:00 2001 From: Arne Scheffler Date: Wed, 28 Jul 2021 08:13:31 +1000 Subject: Bug [#2268]. Fix memory leak caused by circular references. --- cocoa/ScintillaCocoa.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 00a0fbc03..dcc85ba22 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -87,11 +87,11 @@ namespace Scintilla::Internal { */ class ScintillaCocoa : public ScintillaBase { private: - ScintillaView *sciView; + __weak ScintillaView *sciView; TimerTarget *timerTarget; NSEvent *lastMouseEvent; - id delegate; + __weak id delegate; SciNotifyFunc notifyProc; intptr_t notifyObj; -- cgit v1.2.3