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