From ccfd5a5a55ac12dc2a98f65e46b18cd4455f63f6 Mon Sep 17 00:00:00 2001 From: rogerman Date: Tue, 3 May 2022 04:17:30 -0700 Subject: [PATCH] Cocoa Port: Fix a theoretical crash that may occur on app exit. - This doesn't actually happen in practice, but its good to fix this anyways. --- desmume/src/frontend/cocoa/cocoa_cheat.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/frontend/cocoa/cocoa_cheat.mm b/desmume/src/frontend/cocoa/cocoa_cheat.mm index a5c7e47b5..80036c526 100644 --- a/desmume/src/frontend/cocoa/cocoa_cheat.mm +++ b/desmume/src/frontend/cocoa/cocoa_cheat.mm @@ -739,6 +739,7 @@ static NSImage *iconCodeBreaker = nil; self.dbDate = nil; [list release]; delete (CHEATS *)self.listData; + cheats = NULL; if (isUsingDummyRWlock) {