Tracker: Remove needless NULL check before delete.

Thanks John!
This commit is contained in:
Augustin Cavalier 2015-10-21 12:55:07 -04:00
parent c746acc289
commit 4cb401968e
1 changed files with 2 additions and 5 deletions

View File

@ -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;
}