# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1303894853 0 # Node ID 0ba3003272a17cd1566de9c7c801af5beea25e01 # Parent cfcf66a90e8c2f45ba1b7e55aa79397a983f97c7 Fixes for notebook crashes when destroying pages in conjunction with dw_window_destroy()ing the page contents on Mac. diff -r cfcf66a90e8c -r 0ba3003272a1 mac/dw.m --- a/mac/dw.m Wed Apr 27 07:56:50 2011 +0000 +++ b/mac/dw.m Wed Apr 27 09:00:53 2011 +0000 @@ -6606,7 +6606,6 @@ [notebook addTabViewItem:notepage]; } [notebook setPageid:(int)(page+1)]; - [notepage release]; return (unsigned long)page; } @@ -6623,19 +6622,7 @@ if(notepage != nil) { - DWBox *page = [notepage view]; - Box *thisbox = [page box]; - if(thisbox) - { - id object = thisbox->items[0].hwnd; - [object removeFromSuperview]; - [object retain]; - free(thisbox->items); - thisbox->count = 0; - thisbox->items = NULL; - } [notebook removeTabViewItem:notepage]; - [notepage release]; } }