Tracker: FSMoveToTrash(): needless check and possible crash fix
In an earlier commit, I removed a memleak, but it was covering more cases than intended. Thanks to Alex Wilson's insight, it seems that simply removing the check is better (since that check is essentially redone in FSMoveToTrash()).
This commit is contained in:
@@ -600,10 +600,8 @@ TTracker::MoveRefsToTrash(const BMessage *message)
|
||||
srcList->AddItem(new entry_ref(ref));
|
||||
}
|
||||
|
||||
if (srcList->CountItems())
|
||||
// async move to trash
|
||||
FSMoveToTrash(srcList);
|
||||
delete srcList;
|
||||
// async move to trash
|
||||
FSMoveToTrash(srcList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user