packagefs: Use object_cache_delete instead of calling a destructor manually.
No functional change.
This commit is contained in:
parent
be7386be30
commit
4e51d4b707
@ -207,9 +207,7 @@ public:
|
||||
if (node == NULL)
|
||||
return;
|
||||
|
||||
// There is no way to overload operator delete with extra parameters.
|
||||
node->~Node();
|
||||
object_cache_free(fObjectCache, node, 0);
|
||||
object_cache_delete<Node>(fObjectCache, node, 0);
|
||||
}
|
||||
|
||||
// internal use (not part of the strategy)
|
||||
|
Loading…
Reference in New Issue
Block a user