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:
Philippe Saint-Pierre
2012-01-05 17:55:12 -05:00
parent b5c5640ec0
commit 8df5e79d2c
+2 -4
View File
@@ -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);
}