From a5633277234b71515eaef7c3c8b1a1287e07be93 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 20 Oct 2013 16:01:59 -0400 Subject: [PATCH] Updated cocoalib --- cocoalib/controllers/HSOutline.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cocoalib/controllers/HSOutline.m b/cocoalib/controllers/HSOutline.m index 41c52ed8..a39a566d 100644 --- a/cocoalib/controllers/HSOutline.m +++ b/cocoalib/controllers/HSOutline.m @@ -101,7 +101,13 @@ http://www.hardcoded.net/licenses/bsd_license [[self view] setDelegate:nil]; [[self view] reloadData]; [[self view] setDelegate:self]; - [oldRetainer release]; + /* Item retainer and releasing + + In theory, [oldRetainer release] should work, but in practice, doing so causes occasional + crashes during drag & drop, which I guess keep the reference of an item a bit longer than it + should. This is why we autorelease here. See #354. + */ + [oldRetainer autorelease]; [self updateSelection]; }