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)
|
if (node == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// There is no way to overload operator delete with extra parameters.
|
object_cache_delete<Node>(fObjectCache, node, 0);
|
||||||
node->~Node();
|
|
||||||
object_cache_free(fObjectCache, node, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// internal use (not part of the strategy)
|
// internal use (not part of the strategy)
|
||||||
|
Loading…
Reference in New Issue
Block a user