[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSTabView bug
From: |
Ludovic Marcotte |
Subject: |
NSTabView bug |
Date: |
Wed, 17 Oct 2001 15:54:36 -0400 (EDT) |
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
--
Live as if you were to die tomorrow.
Learn as if you were to live forever.
- Gandhi
- NSTabView bug,
Ludovic Marcotte <=