bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTabView bug


From: Nicola Pero
Subject: Re: NSTabView bug
Date: Wed, 17 Oct 2001 05:50:46 +0100 (BST)

Thanks, applied

> Hi,
> 
> In NSTabView: -dealloc, we have:
> 
> - (void) dealloc
> {
>   RELEASE(tab_items);
>   TEST_RELEASE(tab_selected);
>   RELEASE(tab_font);
>   [super dealloc];
> }
> 
> and we should have:
> 
> - (void) dealloc
> {
>   RELEASE(tab_items);
>   RELEASE(tab_font);
>   [super dealloc];
> }
> 
> Since tab_selected is already released in RELEASE(tab_items); and it will
> cause a segfault we this tab_selected object is in the autorelease pool or
> if we try to release it when we're done.
> 
> Ludo
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]