diff --git a/fbinstant/lib/web/library_fbinstant.js b/fbinstant/lib/web/library_fbinstant.js index dc1bc16..7b53c06 100644 --- a/fbinstant/lib/web/library_fbinstant.js +++ b/fbinstant/lib/web/library_fbinstant.js @@ -5,15 +5,7 @@ var FBInstantLibrary = { $Context: { players: [], setPlayers: function(players_to_set) { - // remove old players and free allocations - var player; - while (Context.players.length > 0) { - player = Context.players.pop(); - Module._free(player.id); - Module._free(player.name); - Module._free(player.photo); - } - // create new player objects with allocated strings + Context.players = {}; for (var i=0; i