Hello,

here is a bug fix for NSTabView (latest snapshot 000508):
'tab_font' isn't retained, and -dealloc is missing completely.


2000-05-09 Georg Fleischmann

        * gui/Source/NSTabView.m
        ([-initWithFram:]): retain tab_font
        ([-dealloc]): new method


diff -c gui/Source/NSTabView.m.old gui/Source/NSTabView.m

*** gui/Source/NSTabView.m.old  Mon May  8 23:45:30 2000
--- gui/Source/NSTabView.m      Tue May  9 00:01:41 2000
***************
*** 15,21 ****
    // setup variables

    tab_items = [NSMutableArray new];
!   tab_font = [NSFont systemFontOfSize:12];
    tab_selected = nil;

    return self;
--- 15,21 ----
    // setup variables

    tab_items = [NSMutableArray new];
!   tab_font = [[NSFont systemFontOfSize:12] retain];
    tab_selected = nil;

    return self;
***************
*** 611,614 ****
--- 611,622 ----

    return self;
  }
+
+ - (void) dealloc
+ {
+   RELEASE(tab_items);
+   RELEASE(tab_font);
+   [super dealloc];
+ }
+
  @end


---
Georg Fleischmann

vhf interservice
http://www.vhf.de

Reply via email to