# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1659391786 0 # Node ID 1efe0ed76629ad40176aef47cd5b2309fe533b1a # Parent 1b33d03568c40222f53c80e491ebf9b662e59509 Mac: Fixed a longstanding crash I had on exit in dwtest on PPC MacOS. I don't really understand why, but I need two retains in the box unpack functions or the unpacked widget will be double deallocated when draining the auto release pool on application exit. The zombie detection code on Intel reported the problem as well, but it did not actually crash. diff -r 1b33d03568c4 -r 1efe0ed76629 mac/dw.m --- a/mac/dw.m Mon Aug 01 16:55:06 2022 +0000 +++ b/mac/dw.m Mon Aug 01 22:09:46 2022 +0000 @@ -5239,6 +5239,7 @@ { [object retain]; [object removeFromSuperview]; + [object retain]; if(thisbox->count > 1) { @@ -5305,6 +5306,7 @@ { [object retain]; [object removeFromSuperview]; + [object retain]; } if(thisbox->count > 1)