packagefs: Use object_cache_delete instead of calling a destructor manually.

No functional change.
This commit is contained in:
Augustin Cavalier 2023-02-28 13:42:40 -05:00
parent be7386be30
commit 4e51d4b707

View File

@ -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)