diff --git a/Facepunch.Steamworks/SteamInventory.cs b/Facepunch.Steamworks/SteamInventory.cs index 18d8a86..723dcad 100644 --- a/Facepunch.Steamworks/SteamInventory.cs +++ b/Facepunch.Steamworks/SteamInventory.cs @@ -45,10 +45,12 @@ private static void InventoryUpdated( SteamInventoryFullUpdate_t x ) var r = new InventoryResult( x.Handle, false ); Items = r.GetItems( false ); - OnInventoryUpdated?.Invoke( x.Handle ); + OnInventoryUpdated?.Invoke( r ); + + r.Dispose(); } - public static event Action OnInventoryUpdated; + public static event Action OnInventoryUpdated; public static event Action OnDefinitionsUpdated; public static event Action OnServerDefinitionsUpdated;