Tracker: fix memory leak in OpenWithFilter. (CID #715684)

This commit is contained in:
Philippe Saint-Pierre
2012-11-25 20:35:39 -05:00
parent dbe3088153
commit d6a17f3d78
+4 -1
View File
@@ -955,7 +955,10 @@ OpenWithRefFilter::Filter(const entry_ref* ref, BNode* node, stat_beos* st,
const char* filetype)
{
Model *model = new Model(ref, true, true);
return fIterator->CanOpenWithFilter(model, fEntryList, fPreferredRef);
bool canOpen = fIterator->CanOpenWithFilter(model, fEntryList,
fPreferredRef);
delete model;
return canOpen;
}