Tracker: Remove needless NULL check before delete.
Thanks John!
This commit is contained in:
parent
c746acc289
commit
4cb401968e
|
@ -121,11 +121,8 @@ BPose::~BPose()
|
|||
delete volume;
|
||||
}
|
||||
int32 count = fWidgetList.CountItems();
|
||||
for (int32 i = 0; i < count; i++) {
|
||||
BTextWidget* widget = fWidgetList.ItemAt(i);
|
||||
if (widget != NULL)
|
||||
delete widget;
|
||||
}
|
||||
for (int32 i = 0; i < count; i++)
|
||||
delete fWidgetList.ItemAt(i);
|
||||
|
||||
delete fModel;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue