changeset 939:0ba3003272a1

Fixes for notebook crashes when destroying pages in conjunction with dw_window_destroy()ing the page contents on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 27 Apr 2011 09:00:53 +0000
parents cfcf66a90e8c
children b5ae9cf15f68
files mac/dw.m
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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];
     }
 }