* CID-1741: remove useless piece of code that did nothing but leak the label
* don't check against NULL before deleting fLabel git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38184 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f7502de1bb
commit
6effcf12f2
@ -31,12 +31,6 @@ CLVColumn::CLVColumn(const char* label,BPopUpMenu * popup,float width,uint32 fla
|
||||
if(width < min_width)
|
||||
width = min_width;
|
||||
if(label)
|
||||
{
|
||||
char* Temp = new char[strlen(label)+1];
|
||||
strcpy(Temp,label);
|
||||
label = Temp;
|
||||
}
|
||||
if(label)
|
||||
{
|
||||
fLabel = new char[strlen(label)+1];
|
||||
strcpy((char*)fLabel,label);
|
||||
@ -54,7 +48,7 @@ CLVColumn::CLVColumn(const char* label,BPopUpMenu * popup,float width,uint32 fla
|
||||
|
||||
CLVColumn::~CLVColumn()
|
||||
{
|
||||
if(fLabel) delete[] fLabel;
|
||||
delete [] fLabel;
|
||||
if(fParent) fParent->RemoveColumn(this);
|
||||
delete fPopup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user