Fix memory leak: remove InventoryAction after sending and applying